Quantcast
Channel: Ask Puppet: Puppet DevOps Q&A Community - RSS feed
Viewing all articles
Browse latest Browse all 6104

Blocking root access to a docker container(Centos7) using puppet.

$
0
0
Hello, I am running a web app in a docker container and want to block/disable root access. The container is meant to be ephemeral and black box (at least as much as possible) Currently I have installed a puppet agent and have the user resource shell set to '/sbin/nologin', but it is not working. Running 'puppet resource user root' I have verified that the shell has been changed to '/sbin/nologin' but I can still get to a root shell. I have restarted the container and still have access. Does anybody know how to restrict access to the root shell for docker using puppet?

Viewing all articles
Browse latest Browse all 6104


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>