Skip to content

Instantly share code, notes, and snippets.

@crizstian
Created April 12, 2019 21:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save crizstian/cdbf7472d3f21fd16cf34976b2ab8667 to your computer and use it in GitHub Desktop.
Save crizstian/cdbf7472d3f21fd16cf34976b2ab8667 to your computer and use it in GitHub Desktop.
// first lets switch to root user, since docker is running as root
ubuntu@ip-10-0-3-17:~$ sudo su
root@ip-10-0-3-17:/home/ubuntu# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
79e91c403bf3 mongo "docker-entrypoint.s…" 7 minutes ago Up 7 minutes 0.0.0.0:27017->27017/tcp 10-0-3-17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment