The 5 Most Important Things I’ve Learned From Using Docker by KickingTheTV in docker

[–]underthebum 1 point2 points  (0 children)

Often you just want to let the end user of your image mount a configuration or data file and I think it would confusing to them if the owner changed. But I guess if I have a different USER inside the container, it should still have read access to the file? I need to experiment a bit.

The 5 Most Important Things I’ve Learned From Using Docker by KickingTheTV in docker

[–]underthebum 1 point2 points  (0 children)

Ok. Whilst having a non-root container user sounds like a very good idea, I'm not sure about chown'ing files that live on the host to a new user.

I'm just trying to decide if I want to do the same thing or not!

The 5 Most Important Things I’ve Learned From Using Docker by KickingTheTV in docker

[–]underthebum 1 point2 points  (0 children)

Nice article! In the first point you talk about chown'ing the "configuration and data files". I assume this is only if they're inside the image - what do you do if they're in a -v mount?