https://stackoverflow.com/questions/29245216/write-in-shared-volumes-docker
https://stackoverflow.com/questions/23544282/what-is-the-best-way-to-manage-permissions-for-docker-shared-volumes?rq=1
Dockerfile
https://medium.com/@ramangupta/why-docker-data-containers-are-good-589b3c6c749e
https://docs.docker.com/engine/admin/volumes/volumes/#start-a-service-with-volumes
https://container42.com/2014/11/18/data-only-container-madness/
https://www.tecmint.com/install-run-and-delete-applications-inside-docker-containers/
https://container42.com/2013/12/16/persistent-volumes-with-docker-container-as-volume-pattern/
https://stackoverflow.com/questions/23544282/what-is-the-best-way-to-manage-permissions-for-docker-shared-volumes?rq=1
Dockerfile
FROM debian:jessie # add our user and group first to make sure their IDs get assigned consistently, regardless of other deps added later RUN groupadd -r app \ && useradd -r -g app app RUN mkdir -p /data/app \ && chown -R app:app /data/app VOLUME /data/app USER app CMD ["echo", "Data container for app"]
$ docker run -it volume_test bash app@8839f8e5369e:/$ ls -ld /data drwxr-xr-x 3 root root 4096 Jan 10 23:56 /data app@8839f8e5369e:/$ ls -ld /data/app/ drwxr-xr-x 2 app app 4096 Jan 10 23:56 /data/app/ app@8839f8e5369e:/$
https://medium.com/@ramangupta/why-docker-data-containers-are-good-589b3c6c749e
https://docs.docker.com/engine/admin/volumes/volumes/#start-a-service-with-volumes
https://container42.com/2014/11/18/data-only-container-madness/
https://www.tecmint.com/install-run-and-delete-applications-inside-docker-containers/
https://container42.com/2013/12/16/persistent-volumes-with-docker-container-as-volume-pattern/
No comments:
Post a Comment