Reputation: 4276
I'm running openshift and it does not allow docker containers to run commands as root.
Is there a easy way to check if a custom docker image has commands run by root?
Upvotes: 1
Views: 491
Reputation: 7950
Are you sure this is correct, docker doesn't care what's going on within a VM, and root command would only be able to damage it's own VM.
That said you can open a shell on the image and do some checks
docker run -it gregclinker/boot-docker:1.0.3 /bin/sh
Then you could do:
ps -ef
to check any background processes running and so on.
Upvotes: 1