You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: dockercon-us/README.md
+18-28Lines changed: 18 additions & 28 deletions
Original file line number
Diff line number
Diff line change
@@ -4,27 +4,29 @@
4
4
5
5
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.
6
6
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 youto setup virtual machines with Docker installed. You will find specific requirements in each individual lab guide.
8
8
9
-
You can then choose one or more of the following lab tutorials to go through.
10
9
11
-
---
12
10
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)
14
12
15
13
Docker for Mac and Docker for Windows are faster, more reliable alternatives to Docker Toolbox for running Docker locally on your Windows or Mac
16
14
15
+
Infrastructure requirements: This lab requires you to install either Docker for Mac or Docker for Windows on your local machine
16
+
17
17
Duration: 30 minutes
18
18
19
19
In this lab you will:
20
20
21
21
- Install either Docker for Mac or Docker for Windows
Docker Datacenter brings container management and deployment services to enterprises with a production-ready platform supported by Docker and hosted locally behind the firewall.
27
27
28
+
Infrastructure requirements: This lab requires 3 virtual machines running the latest version of Docker Engine 1.11
29
+
28
30
Duration: 45 minutes
29
31
30
32
In this lab you will:
@@ -34,10 +36,16 @@ In this lab you will:
34
36
- Deploy a multi-container application
35
37
- Use users and teams to implement role-based access control
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.
40
42
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
+
41
49
Duration: 45 minutes
42
50
43
51
In this lab you will:
@@ -48,25 +56,15 @@ In this lab you will:
48
56
- Build an automated CI/CD pipeline with GitHub and Docker Cloud
49
57
50
58
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.
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.
67
62
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
+
68
65
Duration: 45 minutes
69
66
67
+
70
68
In this lab you will:
71
69
72
70
- Deploy a single host application with a Dockerfile
@@ -75,11 +73,3 @@ In this lab you will:
75
73
- Scale the application
76
74
- Drain a node and reschedule the containers
77
75
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!
Copy file name to clipboardExpand all lines: dockercon-us/docker-cloud/README.md
+11-16Lines changed: 11 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,5 @@
1
1
# Lab 3: Docker Cloud
2
2
3
-
##IMPORTANT: If you intend to do the Docker Datacenter lab today, you should do that BEFORE completing this lab.
4
-
5
-
6
3
> **Difficulty**: Beginner
7
4
8
5
> **Time**: Approximately 45 minutes
@@ -49,14 +46,15 @@ When you encounter a phrase in between `<` and `>` you are meant to substitute
49
46
50
47
For instance if you see `ssh <username>@<hostname>` you would actually type something like `ssh labuser@v111node0-adaflds023asdf-23423kjl.appnet.com`
51
48
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.
In order to complete this lab, you will need the following:
57
54
58
55
- 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
60
58
- A GitHub account
61
59
- Git installed locally on your machine (if you are using your machine for the *management host*)
62
60
@@ -92,19 +90,17 @@ You have two options with regards to choosing a *management host*:
92
90
93
91
-**Option 1 (recommended)**: Use your own laptop
94
92
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>.
98
94
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.
100
96
101
97
If you choose this option, you will install the Docker Cloud CLI and execute commands in a terminal or command window on your laptop.
102
98
103
-
-**Option 2**: Use an Azure-based virtual machine
99
+
-**Option 2**: Use a virtual machine
104
100
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*
106
102
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.
108
104
109
105
110
106
### GitHub account
@@ -114,7 +110,6 @@ In order to complete the CI/CD portions of this lab, you will need an account on
114
110
Continue with the lab as soon as you have completed the prerequisites.
115
111
116
112
### 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`).
118
113
119
114
Visit <ahref="https://git-scm.com/book/en/v2/Getting-Started-Installing-Git">the git website</a> for information how how to install `git`
120
115
@@ -126,7 +121,7 @@ The Docker Cloud CLI allows you to interact directly with Docker Cloud, and you
126
121
127
122
Installing the Docker Cloud CLI differs based on the operating system of your *management host*.
128
123
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.
130
125
131
126
2. Install the `docker-cloud` CLI.
132
127
@@ -162,7 +157,7 @@ In this step you'll deploy the Docker Cloud agent to an existing Docker host (**
162
157
163
158
> **Note** that this is **v111node0** which is different than **v111node1** that you *may* have used for your *management host* in the previous step.
164
159
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**
166
161
167
162
ssh <username>@<v111node0 hostname>
168
163
@@ -188,7 +183,7 @@ In this step you'll deploy the Docker Cloud agent to an existing Docker host (**
188
183
189
184
$ curl -Ls https://get.cloud.docker.com/ | sudo -H sh -s c7a941OHAIac9419e837f940fab9aa4f1
190
185
191
-
If prompted ender the password from your email for **v111node0**
186
+
If prompted ender the password for **v111node0**
192
187
193
188
> **Note**: Remember to cut and paste the command and token from the Docker Cloud UI and not the one form the example above.
@@ -38,7 +40,7 @@ available, check the [reference documentation](../reference/install.md).
38
40
39
41
To install UCP:
40
42
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.
42
44
43
45
$ ssh <username>@<v111node0 hostname>
44
46
@@ -61,11 +63,11 @@ To install UCP:
61
63
62
64
- **Password**: enter a password of your choosing
63
65
64
-
- **Additional Aliases**: enter your the hostname for**v111node0** which can be foundin your email (for example: v111node0-0e23927a6fc9472089bf4c7aeca47ca2-3.cloudapp.net)
66
+
- **Additional Aliases**: enter your the hostname for**v111node0**
65
67
66
68
>**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.
67
69
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>`
69
71
70
72
>**Note**: use `https://` not `http://`
71
73
@@ -107,7 +109,7 @@ To install UCP:
107
109
108
110
Now that we have our controller-node installed with UCP. We have to join other nodes to our controller node:
109
111
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**)
111
113
112
114
$ ssh <username>@<v111node1 hostname>
113
115
@@ -184,7 +186,7 @@ In order to access the NGINX container from your web browser you will need the D
184
186
185
187
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.
186
188
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.
188
190
189
191
You will see the NGINX welcome page.
190
192
@@ -263,7 +265,7 @@ web:
263
265
264
266
5. Point your browser to the application.
265
267
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:
Copy file name to clipboardExpand all lines: dockercon-us/docker-orchestration/README.md
+5-17Lines changed: 5 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,10 @@ You will complete the following steps in this lab:
17
17
## Pre-requisites
18
18
19
19
You will need all of the following in order to complete this lab:
20
+
20
21
- 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
+
21
24
- 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).
22
25
23
26
@@ -37,25 +40,11 @@ The application you will deploy is the `cats` application. It is a simple 1-cont
37
40
38
41
### Step 1.1 - Log into VMs and verify that Docker is running
39
42
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__
43
44
44
45
```bash
45
46
ssh labuser@<public-dns-of-v112node0>
46
47
```
47
-
You will be asked for a password. The password is in the email with the DNS names of the lab VMs.
Welcome to Ubuntu 14.04.4 LTS (GNU/Linux 4.2.0-23-generic x86_64)
58
-
```
59
48
60
49
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.
61
50
@@ -275,7 +264,7 @@ Now that we have verified that our application works we will push the newly crea
275
264
276
265
Perform the following steps from **v112node0**.
277
266
278
-
1. Login with your Docker ID.
267
+
1. Login to Docker Hub with your Docker ID.
279
268
280
269
```bash
281
270
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
353
342
354
343
1. If you haven't already done so, SSH in to **v112node0**.
355
344
356
-
For example (remember to substitute your SSH key and **v112node0** for your lab):
0 commit comments