Last active
November 13, 2015 22:00
-
-
Save austintgriffith/e14b8338815f2c3e83e4 to your computer and use it in GitHub Desktop.
Docker Demo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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