Skip to content
This repository has been archived by the owner on Oct 18, 2020. It is now read-only.

Remove VOLUME from Dockerfile #436

Open
Coobik opened this issue Aug 31, 2020 · 0 comments
Open

Remove VOLUME from Dockerfile #436

Coobik opened this issue Aug 31, 2020 · 0 comments

Comments

@Coobik
Copy link

Coobik commented Aug 31, 2020

Hi silverwind,

it would be great if you removed VOLUME from Dockerfile.
this directive is confusing.
Currently there is no way of removing the volumes declared in base images. So if one derives another docker image from your image, the volumes are still created. If not mounted explicitly by docker run, docker creates them implicitly as anonymous ones under /mnt/sda1/var/lib/docker/volumes/
Not only they stay there until removed with docker volume prune, but there are huge permissions problems for non root users when try to access directories that are declared as volumes - chown and chmod do not help here.

so could you please remove VOLUME from your Dockerfile
thanks!

PS your dockerfile and start script and build in a way that it's impossible to start a container under non root user

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant