Skip to content

Commit 1b49b2a

Browse files
committed
updated labs
1 parent aecdaef commit 1b49b2a

File tree

4 files changed

+43
-68
lines changed

4 files changed

+43
-68
lines changed

dockercon-us/README.md

Lines changed: 18 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,29 @@
44

55
This repo contains the series of hands-on labs presented at DockerCon 2016. They are designed to help you gain experience in various Docker features, products, and solutions. Depending on your experience, each lab requires between 30-45 minutes to complete. They range in difficulty from easy to advanced.
66

7-
In order to complete the following labs you'll need to create at least 3 Ubuntu 14.04 virtual machines and install the Docker 1.12 engine.
7+
Some labs will require you to setup virtual machines with Docker installed. You will find specific requirements in each individual lab guide.
88

9-
You can then choose one or more of the following lab tutorials to go through.
109

11-
---
1210

13-
## Lab 01. [Docker for Developers](https://github.com/docker/dcus-hol-2016/tree/master/docker-developer)
11+
## Lab 01. [Docker for Developers](./docker-developer/README.md)
1412

1513
Docker for Mac and Docker for Windows are faster, more reliable alternatives to Docker Toolbox for running Docker locally on your Windows or Mac
1614

15+
Infrastructure requirements: This lab requires you to install either Docker for Mac or Docker for Windows on your local machine
16+
1717
Duration: 30 minutes
1818

1919
In this lab you will:
2020

2121
- Install either Docker for Mac or Docker for Windows
2222
- Deploy a sample Docker application
2323

24-
## Lab 02. [Docker Datacenter](https://github.com/docker/dcus-hol-2016/tree/master/docker-datacenter)
24+
## Lab 02. [Docker Datacenter](./docker-datacenter/README.md)
2525

2626
Docker Datacenter brings container management and deployment services to enterprises with a production-ready platform supported by Docker and hosted locally behind the firewall.
2727

28+
Infrastructure requirements: This lab requires 3 virtual machines running the latest version of Docker Engine 1.11
29+
2830
Duration: 45 minutes
2931

3032
In this lab you will:
@@ -34,10 +36,16 @@ In this lab you will:
3436
- Deploy a multi-container application
3537
- Use users and teams to implement role-based access control
3638

37-
## Lab 03. [Docker Cloud](https://github.com/docker/dcus-hol-2016/tree/master/docker-cloud)
39+
## Lab 03. [Docker Cloud](./docker-cloud/README.md)
3840

3941
Docker Cloud is Docker's cloud platform to build, ship and run your containerized applications. Docker Cloud enables teams to come together to collaborate on their projects and to automate complex continuous delivery flows. So you can focus on working and improving your app, and leave the rest up to Docker Cloud. Docker Cloud offers a set of services that can be used individually or together for an end-to end solution.
4042

43+
Infrastructure requirements:
44+
45+
- For the management host you may use your local laptop running Docker for Mac or Docker for Windows OR you may use a virtual machine running the latest version of Docker Engine 1.11
46+
47+
- For the managed node you will need one virtual machine running one of the supported Linux distros (RHEL
48+
4149
Duration: 45 minutes
4250

4351
In this lab you will:
@@ -48,25 +56,15 @@ In this lab you will:
4856
- Build an automated CI/CD pipeline with GitHub and Docker Cloud
4957

5058

51-
## Lab 04. [Windows Server Containers and Docker](https://github.com/docker/dcus-hol-2016/tree/master/windows-containers)
52-
53-
Windows-based Docker containers will debut with the release of Windows Server 2016 later this year. Using the same CLI and APIs that Docker uses today on Linux, Windows users will be able to build, ship, and run software faster than ever before. This lab uses a technical preview of Windows Server 2016 to give you a core introduction to Windows Server Containers and the Docker Engine on Windows.
54-
55-
Duration: 15 minutes
56-
57-
In this lab you will:
58-
59-
- Pull Docker images for Windows
60-
- Build an application,
61-
- Dockerize it and iterate on it.
62-
63-
64-
## Lab 05. [Docker Native Orchestration](https://github.com/docker/dcus-hol-2016/tree/master/docker-orchestration)
59+
## Lab 04. [Docker Native Orchestration](./docker-orchestration/README.md)
6560

6661
In this lab you will try out the new features from Docker engine 1.12 that provide native container orchestration. You will deploy a Dockerized application to a single host and test the application. You will then configure Docker for Swarm Computing and deploy the same app across multiple hosts. You will then see how to scale the application and move the workload across different hosts easily.
6762

63+
Infrastructure requirements: You need three virtual machines each running at least RC2 of Docker Engine 1.12. You can install the latest stable release of Docker Engine 1.12 from http://test.docker.com
64+
6865
Duration: 45 minutes
6966

67+
7068
In this lab you will:
7169

7270
- Deploy a single host application with a Dockerfile
@@ -75,11 +73,3 @@ In this lab you will:
7573
- Scale the application
7674
- Drain a node and reschedule the containers
7775

78-
79-
80-
81-
---
82-
83-
## Contribute Your Own Labs
84-
85-
If you have an awesome tutorial/lab and would like to add it here. Please open a PR. We would love to add more exciting tutorials to the list!

dockercon-us/docker-cloud/README.md

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
# Lab 3: Docker Cloud
22

3-
##IMPORTANT: If you intend to do the Docker Datacenter lab today, you should do that BEFORE completing this lab.
4-
5-
63
> **Difficulty**: Beginner
74
85
> **Time**: Approximately 45 minutes
@@ -49,14 +46,15 @@ When you encounter a phrase in between `<` and `>` you are meant to substitute
4946

5047
For instance if you see `ssh <username>@<hostname>` you would actually type something like `ssh labuser@v111node0-adaflds023asdf-23423kjl.appnet.com`
5148

52-
You will be asked to SSH into various nodes. These nodes are referred to as **v111node0**, **v111node1** etc. These tags correspond to the very beginning of the hostnames you will find in your welcome email.
49+
You will be asked to SSH into various nodes. These nodes are referred to as **v111node0** and **v111node1** (optional) etc.
5350

5451
## <a name="prerequisites"></a>Task 0: Prerequisites
5552

5653
In order to complete this lab, you will need the following:
5754

5855
- A Docker ID
59-
- A management host (you can use your laptop or one of the Azure nodes supplied in your registration email)
56+
- A management host (you can use your laptop or a virtual machine with Docker Engine 1.11)
57+
- A managed node which needs to be a virtual machine running Docker Engine 1.11
6058
- A GitHub account
6159
- Git installed locally on your machine (if you are using your machine for the *management host*)
6260

@@ -92,19 +90,17 @@ You have two options with regards to choosing a *management host*:
9290

9391
- **Option 1 (recommended)**: Use your own laptop
9492

95-
In order to use your own laptop, you will need to have Docker installed.
96-
97-
We recommend you install either the Docker for Mac or Docker for Windows beta. If you'd like to do this please refer to the <a href="https://github.com/docker/dcus-hol-2016/tree/master/docker-developer"> Docker for developers lab</a>, and follow the installation instructions there for your operating system
93+
In order to use your own laptop, you will need to have Docker installed. You can find instructions on how to install docker on our <a href="https://www.docker.com/products/docker">products page</a>.
9894

99-
> **Note**: You only need to do the installation portion of the Docker for Developers lab, you don't need to complete the whole lab unless you'd like to).
95+
We recommend you install either the Docker for Mac or Docker for Windows beta.
10096

10197
If you choose this option, you will install the Docker Cloud CLI and execute commands in a terminal or command window on your laptop.
10298

103-
- **Option 2**: Use an Azure-based virtual machine
99+
- **Option 2**: Use a virtual machine
104100

105-
If you do not wish to install any software locally you can use one of the Azure VMs as your *management host*
101+
If you do not wish to install any software locally you can use one a VM as your *management host*
106102

107-
If you choose this option, you will install the Docker Cloud CLI an execute all commands on the **v111node1** virtual machine.
103+
If you choose this option, you will install the Docker Cloud CLI an execute all commands on the virtual machine which we'll refer to as **v111node1**. The VM will need to have Docker 1.11 installed.
108104
109105

110106
### GitHub account
@@ -114,7 +110,6 @@ In order to complete the CI/CD portions of this lab, you will need an account on
114110
Continue with the lab as soon as you have completed the prerequisites.
115111

116112
### Git installed
117-
If you are using your own laptop for you *management host*, you'll need to make sure you have `git` installed (it's already installed if you are using `Second v.1.11 node`).
118113

119114
Visit <a href="https://git-scm.com/book/en/v2/Getting-Started-Installing-Git">the git website</a> for information how how to install `git`
120115

@@ -126,7 +121,7 @@ The Docker Cloud CLI allows you to interact directly with Docker Cloud, and you
126121

127122
Installing the Docker Cloud CLI differs based on the operating system of your *management host*.
128123

129-
1. Make sure you are logged on to your *management host*: Either a local terminal/command window if using Docker for Mac or Docker for Windows, or an SSH session to **v111node1** if you are using the Azure VM.
124+
1. Make sure you are logged on to your *management host*: Either a local terminal/command window if using Docker for Mac or Docker for Windows, or an SSH session to **v111node1** if you are using a VM.
130125

131126
2. Install the `docker-cloud` CLI.
132127

@@ -162,7 +157,7 @@ In this step you'll deploy the Docker Cloud agent to an existing Docker host (**
162157

163158
> **Note** that this is **v111node0** which is different than **v111node1** that you *may* have used for your *management host* in the previous step.
164159
165-
1. Open a terminal window and SSH into **v111node0** (you can find the hostname and password in your welcome email)
160+
1. Open a terminal window and SSH into **v111node0**
166161

167162
ssh <username>@<v111node0 hostname>
168163

@@ -188,7 +183,7 @@ In this step you'll deploy the Docker Cloud agent to an existing Docker host (**
188183

189184
$ curl -Ls https://get.cloud.docker.com/ | sudo -H sh -s c7a941OHAIac9419e837f940fab9aa4f1
190185

191-
If prompted ender the password from your email for **v111node0**
186+
If prompted ender the password for **v111node0**
192187

193188
> **Note**: Remember to cut and paste the command and token from the Docker Cloud UI and not the one form the example above.
194189

dockercon-us/docker-datacenter/README.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ you will be able to quickly familiarize yourself with the features of Docker Uni
2020
## <a name="prerequisites"></a>Prerequisites
2121

2222
- Three VMs with Docker Engine 1.11 Installed
23-
- Each VM will be referred to as v111node0, v111node1, and v111node2
23+
- Each VM will be referred to as v111node0, v111node1, and v111node2
24+
- v111node0 will be the UCP controller
25+
- v111node1 and v111node2 will be worker nodes in your UCP cluster
2426

2527
## <a name="install-ucp-controller"></a>Install UCP
2628

@@ -38,7 +40,7 @@ available, check the [reference documentation](../reference/install.md).
3840

3941
To install UCP:
4042

41-
1. Log in to your first VM (v111node0) where you will install UCP. v111node0 will act as your controller node. You will find the hostname, username, and password in your email
43+
1. Log in to your first VM (v111node0) where you will install UCP. v111node0 will act as your controller node.
4244

4345
$ ssh <username>@<v111node0 hostname>
4446

@@ -61,11 +63,11 @@ To install UCP:
6163

6264
- **Password**: enter a password of your choosing
6365

64-
- **Additional Aliases**: enter your the hostname for **v111node0** which can be found in your email (for example: v111node0-0e23927a6fc9472089bf4c7aeca47ca2-3.cloudapp.net)
66+
- **Additional Aliases**: enter your the hostname for **v111node0**
6567

6668
> **Note**: The install with finish with a message to log into your UCP controller at an IP address similar to 10.0.0.2. Ignore this, the address supplied is a private IP, and cannot be used to access UCP.
6769

68-
1. Log into your UCP cluster by pointing your browser to `https://<v111node0 hostname>` (you can find your hostname in the email you received)
70+
1. Log into your UCP cluster by pointing your browser to `https://<v111node0 hostname>`
6971

7072
> **Note**: use `https://` not `http://`
7173

@@ -107,7 +109,7 @@ To install UCP:
107109

108110
Now that we have our controller-node installed with UCP. We have to join other nodes to our controller node:
109111

110-
1. Log into your second VM (**v111node1**) (You can find your username, password, and hostname in the email you received)
112+
1. Log into your second VM (**v111node1**)
111113

112114
$ ssh <username>@<v111node1 hostname>
113115

@@ -184,7 +186,7 @@ In order to access the NGINX container from your web browser you will need the D
184186
185187
In this particular example, the **nginx_server** container is running on the **v111node1** node with an IP of 10.0.0.55 - However, this is the private IP address of the node and you will not be able to use this address to connect to the web server. Locate the hostname of the node from the lab details you received.
186188
187-
- Go to your web browser and enter the hostname (found in your registration email) of the node that the **nginx_server** container is running on.
189+
- Go to your web browser and enter the hostname of the node that the **nginx_server** container is running on.
188190
189191
You will see the NGINX welcome page.
190192
@@ -263,7 +265,7 @@ web:
263265
264266
5. Point your browser to the application.
265267
266-
To do this, combine the node's hostname (from your registration email) with port 5000 as follows:
268+
To do this, combine the node's hostname with port 5000 as follows:
267269

268270
- `<hostname>:5000`
269271

dockercon-us/docker-orchestration/README.md

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ You will complete the following steps in this lab:
1717
## Pre-requisites
1818

1919
You will need all of the following in order to complete this lab:
20+
2021
- Three nodes running Docker v1.12.x. Each VM will be referenced as **v112node0**, **v112node1**, and **v112node2**.
22+
- You can install the latest stable version of Docker 1.12 from <a href="http://test.docker.com">http://test.docker.com</a>
23+
2124
- A Docker ID. Creating a Docker ID is free, and allows you to push and pull images from Docker Hub. [This link](https://docs.docker.com/mac/step_five/) describes how to create a Docker ID (you only need to complete the procedure up to step 2.3).
2225

2326

@@ -37,25 +40,11 @@ The application you will deploy is the `cats` application. It is a simple 1-cont
3740

3841
### Step 1.1 - Log into VMs and verify that Docker is running
3942

40-
1. SSH to your __v112node0__ with the username of `labuser`. You should have the hostnames in an email titled "Docker Labs VMs Ready"
41-
42-
The command to SSH into **v112node0** will look something like the following:
43+
1. SSH to __v112node0__
4344

4445
```bash
4546
ssh labuser@<public-dns-of-v112node0>
4647
```
47-
You will be asked for a password. The password is in the email with the DNS names of the lab VMs.
48-
49-
An example of the sign in ...
50-
```bash
51-
ssh labuser@v112node0-9128f1906df54acda5044f56a1a86b07-2.cloudapp.net
52-
The authenticity of host 'v112node0-9128f1906df54acda5044f56a1a86b07-2.cloudapp.net (40.112.136.129)' can't be established.
53-
ECDSA key fingerprint is SHA256:3L9UZQTSCOUkzVuyO5z3H7jLedSp8/5AquUtSZ8ydEE.
54-
Are you sure you want to continue connecting (yes/no)? yes
55-
Warning: Permanently added 'v112node0-9128f1906df54acda5044f56a1a86b07-2.cloudapp.net,40.112.136.129' (ECDSA) to the list of known hosts.
56-
labuser@v112node0-9128f1906df54acda5044f56a1a86b07-2.cloudapp.net's password:
57-
Welcome to Ubuntu 14.04.4 LTS (GNU/Linux 4.2.0-23-generic x86_64)
58-
```
5948

6049
2. Verify that Docker is running. This lab is based on a pre-release version of Docker Engine 1.12 so that we can show you the latest Swarm features. We are running version `1.12.0-rc1` on these VMs.
6150

@@ -275,7 +264,7 @@ Now that we have verified that our application works we will push the newly crea
275264
276265
Perform the following steps from **v112node0**.
277266
278-
1. Login with your Docker ID.
267+
1. Login to Docker Hub with your Docker ID.
279268
280269
```bash
281270
labuser@v112node0:~/cats$ docker login
@@ -353,7 +342,6 @@ In this part of the demo you will use all three of the nodes in your lab. __v112
353342

354343
1. If you haven't already done so, SSH in to **v112node0**.
355344

356-
For example (remember to substitute your SSH key and **v112node0** for your lab):
357345

358346
```
359347
$ ssh labuser@v112node0-9a7b5b024cf247fb8d851bf173c72619-4.cloudapp.net

0 commit comments

Comments
 (0)