Folks,
Until Docker 1.9, the user inside the container is root; more specifically uid = 0, gid = 0. If a breakout occurs, the container user is root on the host system. This was a major security hole, which was addressed by providing support for user-namespaces in the latest Docker 1.10 release.
In 1.10, when I explicitly enable userns-remap as follows, in /etc/systemd/system/docker.service, like so:
ExecStart=/usr/bin/docker daemon --userns-remap=default -H fd://
followed by:
systemctl daemon-reload ; systemctl restart docker
User-namespace works as expected ( which is awesome !! ), but all my previously downloaded docker images are no longer visible on the host. They are not deleted; they just become invisible. So I need to download new images from dockerHub. This behavior is quite puzzling .
I’ve tried this on multiple machines, and it seems to be a consistent problem. Once I disable user-namespaces and restart Docker daemon, the original images reappear. Also, it is not a “pilot error”; other folks have also seen it happen…..and consider it as an issue/bug for enabling user namespaces in a production envt
http://raesene.github.io/blog/2016/02/04/Docker-User-Namespaces/
--
You received this message because you are subscribed to the Google Groups "docker-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to docker-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.