Skip to content

Instantly share code, notes, and snippets.

@austintgriffith
Last active November 13, 2015 22:00
Show Gist options
  • Save austintgriffith/e14b8338815f2c3e83e4 to your computer and use it in GitHub Desktop.
Save austintgriffith/e14b8338815f2c3e83e4 to your computer and use it in GitHub Desktop.
Docker Demo
Create a new folder on your machine and then create a file in there called "Dockerfile"
Inside that file we will add a single line:
"FROM ubuntu:latest"
That tells docker to create our image from the latest ubuntu.
In that directory run "docker build -t demo ." to build it.
And, "docker run -ti demo /bin/bash" to run it.
Okay now you can run "top" inside that and there should only be top and bash running:
http://grab.by/M0kG
From there, let's get a little more advanced and install a few things...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment