Skip to content

Instantly share code, notes, and snippets.

@pburkholder
Created November 8, 2015 10:56
Show Gist options
  • Save pburkholder/57de5f2b24b7cba07184 to your computer and use it in GitHub Desktop.
Save pburkholder/57de5f2b24b7cba07184 to your computer and use it in GitHub Desktop.
Interesting commands inside docker

Interesting commands to run inside a docker container

Try docker -i -t --name ubuntu:trusty --name trusty /bin/bash and look at:

whoami
ps -ef # what is PID 1?
bash; ps -ef
df
uname -a
bash --version
exit

Try docker -i -t ubuntu:precise --name precise /bin/bash and look at the same commands

What is uname -a at the host level?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment