Play wtth Docker classroom
Oct 25, 2015 ■ Smlkegcoleman
In this lab. we will look at some basie Docker commands and a simple build-ship-run workflow. WeTI start by running some simple containers, then we'll use a Dockerfiie to buiid a cistom app. Finatly. wcti lock at how to use bind mounts to modify a running Container as you inight if you were actively deveiop ng using Docker.
Time: Approximately 30 minutes
Tasks:
• Task 0: Prerequisites
• Task 3: Modify a Running Website
You will need all of thefollowing to complete this lab:
• A clone of the lab's GitHub nepo.
• ADockerlD.
Use the following command to clone the lab's repo from GitHub (you can cllck the cornmand or manualty type it). This will make a copy ot the lab's repo in a new sub-directory called Tinux_tweet_apD .
git clone https://github.con/dockersaaiples/linux_tweet_app
If you do not have a DcckerlD (a free login useci to access Docker Cloud, Docker Storę, and Docker Hub), please visit Docker Cloud and reg ster for one. You will reed this for later steps.
About
If the oommandllne doesnt appear In the terminal, make surę po pupę ara enabled or try reatzlng the broweer wlndow,
[nodel.] (local) rootpl92 . lt>8.0.28 —
git clone httpsj//github. coai/dockeraonipleB/linujc_ŁweeŁ_app loning into 'linux_twe©t_app'... emotet Counting objectsi 14, done,
emote: Total 14 (delta 0), reused 0 (delta 0)r pack-reueed 14 packing objects: 100% (14/14), done.
nodel] (local) root?192.166.0.26 -docker Container run alpine hoatname 8153493acle
nodel] (local) root?192.168.0.28 -$ docker Container la —all
CREATED
STATUS
AI NER ID IMAGE COMMAND
DAMES
3 aeconda ago
Exited (0) 2 seconda ago
68153493acle alpine "hostnanre"
boring_turing
nodel] (local) root«192.168.0.2B -
0