sameersbn / docker-bind

Dockerize BIND DNS server with webmin for DNS administration
MIT License
913 stars 333 forks source link

[ENH] Remove the "chown" requirement #49

Closed sameersbn closed 5 years ago

sameersbn commented 6 years ago

Hi, I'm currently unable to mount a shared folder as a volume inside the image, since it fails during the chown operation here:

https://github.com/sameersbn/docker-squid/blob/master/entrypoint.sh#L12

Can you consider removing the operation?

Setting an explicit SQUID_USER is not a solution in my use case, unfortunely.

sameersbn commented 6 years ago

➤ Sameer Naik commented:

@paoloantinori sorry for the lateness of my response. Are you using Docker in a VM? Docker for MAC, etc? Can you share some information about your docker environment and steps to reproduce this issue?

Malpractis commented 6 years ago

Hey Sameer,

I'm running Rancher in a VM (hosted on Freenas), I've configured the NFS driver in Rancher. For the NFS shares in Freenas I've configured the Mapall user and group to match the UID/GID of the Rancher user. So chown is not needed in my config.

Perhaps another solution would be to enable the specification of the container UID & GID in environment variables?

tlewis17 commented 6 years ago

I had this problem too because I run all my volumes from an NFS share since I run in a swarm. I had to add no_root_squash to my NFS box's shares. Not ideal, but it works. Chown is pretty common for Docker authors so even fixiing it here will still be problems with other containers.

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.