heldt
heldt

Reputation: 4276

How can I check a docker image if theres are commands run by root

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

Answers (1)

Essex Boy
Essex Boy

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

Related Questions