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: get-started/index.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,11 +59,11 @@ redirect_from:
59
59
60
60
Welcome! We are excited that you want to learn Docker. The Docker Quickstart training module teaches you how to:
61
61
62
-
1. Set up your Docker environment (on this page)
62
+
1.Set up your Docker environment (on this page)
63
63
64
-
2.[Build and run your image](part2.md)
64
+
2.[Build and run your image](part2.md)
65
65
66
-
3.[Share images on Docker Hub](part3.md)
66
+
3.[Share images on Docker Hub](part3.md)
67
67
68
68
## Docker concepts
69
69
@@ -125,7 +125,7 @@ Docker version 19.03.5, build 633a0ea
125
125
126
126
### Test Docker installation
127
127
128
-
1. Test that your installation works by running the [hello-world](https://hub.docker.com/_/hello-world/){: target="_blank" class="_"} Docker image:
128
+
1.Test that your installation works by running the [hello-world](https://hub.docker.com/_/hello-world/){: target="_blank" class="_"} Docker image:
129
129
130
130
```shell
131
131
$ docker run hello-world
@@ -141,9 +141,9 @@ Docker version 19.03.5, build 633a0ea
141
141
...
142
142
```
143
143
144
-
2. Run `docker image ls` to list the `hello-world` image that you downloaded to your machine.
144
+
2. Run `docker image ls` to list the `hello-world` image that you downloaded to your machine.
145
145
146
-
3. List the `hello-world` container (spawned by the image) which exits after displaying its message. If it is still running, you do not need the `--all` option:
146
+
3. List the `hello-world` container (spawned by the image) which exits after displaying its message. If it is still running, you do not need the `--all` option:
Copy file name to clipboardExpand all lines: get-started/orchestration.md
+21-21Lines changed: 21 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,13 +49,13 @@ Docker Desktop will set up Kubernetes for you quickly and easily. Follow the set
49
49
50
50
This describes a pod with a single container, isolating a simple ping to 8.8.8.8.
51
51
52
-
4. In a terminal, navigate to where you created `pod.yaml` and create your pod:
52
+
4. In a terminal, navigate to where you created `pod.yaml` and create your pod:
53
53
54
54
```shell
55
55
kubectl apply -f pod.yaml
56
56
```
57
57
58
-
5. Check that your pod is up and running:
58
+
5. Check that your pod is up and running:
59
59
60
60
```shell
61
61
kubectl get pods
@@ -68,7 +68,7 @@ Docker Desktop will set up Kubernetes for you quickly and easily. Follow the set
68
68
demo 1/1 Running 0 4s
69
69
```
70
70
71
-
6. Check that you get the logs you'd expect for a ping process:
71
+
6. Check that you get the logs you'd expect for a ping process:
72
72
73
73
```shell
74
74
kubectl logs demo
@@ -84,7 +84,7 @@ Docker Desktop will set up Kubernetes for you quickly and easily. Follow the set
84
84
...
85
85
```
86
86
87
-
7. Finally, tear down your test pod:
87
+
7. Finally, tear down your test pod:
88
88
89
89
```shell
90
90
kubectl delete -f pod.yaml
@@ -99,11 +99,11 @@ Docker Desktop will set up Kubernetes for you quickly and easily. Follow the set
99
99
100
100
### Windows
101
101
102
-
1. After installing Docker Desktop, you should see a Docker icon in your system tray. Right-click on it, and navigate **Settings** > **Kubernetes**.
102
+
1. After installing Docker Desktop, you should see a Docker icon in your system tray. Right-click on it, and navigate **Settings** > **Kubernetes**.
103
103
104
-
2. Check the checkbox labeled **Enable Kubernetes**, and click **Apply & Restart**. Docker Desktop will automatically set up Kubernetes for you. You'll know that Kubernetes has been successfully enabled when you see a green light beside 'Kubernetes _running_' in the **Settings** menu.
104
+
2. Check the checkbox labeled **Enable Kubernetes**, and click **Apply & Restart**. Docker Desktop will automatically set up Kubernetes for you. You'll know that Kubernetes has been successfully enabled when you see a green light beside 'Kubernetes _running_' in the **Settings** menu.
105
105
106
-
3. In order to confirm that Kubernetes is up and running, create a text file called `pod.yaml` with the following content:
106
+
3. In order to confirm that Kubernetes is up and running, create a text file called `pod.yaml` with the following content:
107
107
108
108
```yaml
109
109
apiVersion: v1
@@ -119,13 +119,13 @@ Docker Desktop will set up Kubernetes for you quickly and easily. Follow the set
119
119
120
120
This describes a pod with a single container, isolating a simple ping to 8.8.8.8.
121
121
122
-
4. In PowerShell, navigate to where you created `pod.yaml` and create your pod:
122
+
4. In PowerShell, navigate to where you created `pod.yaml` and create your pod:
123
123
124
124
```shell
125
125
kubectl apply -f pod.yaml
126
126
```
127
127
128
-
5. Check that your pod is up and running:
128
+
5. Check that your pod is up and running:
129
129
130
130
```shell
131
131
kubectl get pods
@@ -138,7 +138,7 @@ Docker Desktop will set up Kubernetes for you quickly and easily. Follow the set
138
138
demo 1/1 Running 0 4s
139
139
```
140
140
141
-
6. Check that you get the logs you'd expect for a ping process:
141
+
6. Check that you get the logs you'd expect for a ping process:
142
142
143
143
```shell
144
144
kubectl logs demo
@@ -154,7 +154,7 @@ Docker Desktop will set up Kubernetes for you quickly and easily. Follow the set
154
154
...
155
155
```
156
156
157
-
7. Finally, tear down your test pod:
157
+
7. Finally, tear down your test pod:
158
158
159
159
```shell
160
160
kubectl delete -f pod.yaml
@@ -180,7 +180,7 @@ Docker Desktop runs primarily on Docker Engine, which has everything you need to
180
180
181
181
### Mac
182
182
183
-
1. Open a terminal, and initialize Docker Swarm mode:
183
+
1. Open a terminal, and initialize Docker Swarm mode:
184
184
185
185
```shell
186
186
docker swarm init
@@ -198,13 +198,13 @@ Docker Desktop runs primarily on Docker Engine, which has everything you need to
198
198
To add a manager to this swarm, run 'docker swarm join-token manager' and follow the instructions.
199
199
```
200
200
201
-
2. Run a simple Docker service that uses an alpine-based filesystem, and isolates a ping to 8.8.8.8:
201
+
2. Run a simple Docker service that uses an alpine-based filesystem, and isolates a ping to 8.8.8.8:
202
202
203
203
```shell
204
204
docker service create --name demo alpine:3.5 ping 8.8.8.8
205
205
```
206
206
207
-
3. Check that your service created one running container:
207
+
3. Check that your service created one running container:
208
208
209
209
```shell
210
210
docker service ps demo
@@ -217,7 +217,7 @@ Docker Desktop runs primarily on Docker Engine, which has everything you need to
217
217
463j2s3y4b5o demo.1 alpine:3.5 docker-desktop Running Running 8 seconds ago
218
218
```
219
219
220
-
4. Check that you get the logs you'd expect for a ping process:
220
+
4. Check that you get the logs you'd expect for a ping process:
221
221
222
222
```shell
223
223
docker service logs demo
@@ -233,7 +233,7 @@ Docker Desktop runs primarily on Docker Engine, which has everything you need to
233
233
...
234
234
```
235
235
236
-
5. Finally, tear down your test service:
236
+
5. Finally, tear down your test service:
237
237
238
238
```shell
239
239
docker service rm demo
@@ -248,7 +248,7 @@ Docker Desktop runs primarily on Docker Engine, which has everything you need to
248
248
249
249
### Windows
250
250
251
-
1. Open a powershell, and initialize Docker Swarm mode:
251
+
1. Open a powershell, and initialize Docker Swarm mode:
252
252
253
253
```shell
254
254
docker swarm init
@@ -266,13 +266,13 @@ Docker Desktop runs primarily on Docker Engine, which has everything you need to
266
266
To add a manager to this swarm, run 'docker swarm join-token manager' and follow the instructions.
267
267
```
268
268
269
-
2. Run a simple Docker service that uses an alpine-based filesystem, and isolates a ping to 8.8.8.8:
269
+
2. Run a simple Docker service that uses an alpine-based filesystem, and isolates a ping to 8.8.8.8:
270
270
271
271
```shell
272
272
docker service create --name demo alpine:3.5 ping 8.8.8.8
273
273
```
274
274
275
-
3. Check that your service created one running container:
275
+
3. Check that your service created one running container:
276
276
277
277
```shell
278
278
docker service ps demo
@@ -285,7 +285,7 @@ Docker Desktop runs primarily on Docker Engine, which has everything you need to
285
285
463j2s3y4b5o demo.1 alpine:3.5 docker-desktop Running Running 8 seconds ago
286
286
```
287
287
288
-
4. Check that you get the logs you'd expect for a ping process:
288
+
4. Check that you get the logs you'd expect for a ping process:
289
289
290
290
```shell
291
291
docker service logs demo
@@ -301,7 +301,7 @@ Docker Desktop runs primarily on Docker Engine, which has everything you need to
Copy file name to clipboardExpand all lines: get-started/part3.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,35 +20,35 @@ At this point, you've built a containerized application in [Part 2](part2.md) on
20
20
21
21
If you don't yet have a Docker ID, follow these steps to set one up; this will allow you to share images on Docker Hub.
22
22
23
-
1. Visit the Docker Hub sign up page, [https://hub.docker.com/signup](https://hub.docker.com/signup).
23
+
1.Visit the Docker Hub sign up page, [https://hub.docker.com/signup](https://hub.docker.com/signup).
24
24
25
-
2. Fill out the form and submit to create your Docker ID.
25
+
2.Fill out the form and submit to create your Docker ID.
26
26
27
-
3. Verify your email address to complete the registration process.
27
+
3.Verify your email address to complete the registration process.
28
28
29
-
4. Click on the Docker icon in your toolbar or system tray, and click **Sign in / Create Docker ID**.
29
+
4.Click on the Docker icon in your toolbar or system tray, and click **Sign in / Create Docker ID**.
30
30
31
-
5. Fill in your new Docker ID and password. After you have successfully authenticated, your Docker ID appears in the Docker Desktop menu in place of the 'Sign in' option you just used.
31
+
5.Fill in your new Docker ID and password. After you have successfully authenticated, your Docker ID appears in the Docker Desktop menu in place of the 'Sign in' option you just used.
32
32
33
33
> You can do the same thing from the command line by typing `docker login`.
34
34
35
35
## Create a Docker Hub repository and push your image
36
36
37
37
At this point, you've set up your Docker Hub account and have connected it to your Docker Desktop. Now let's make our first repo, and share our bulletin board app there.
38
38
39
-
1. Click on the Docker icon in your menu bar, and navigate to **Repositories > Create**. You'll be taken to a Docker Hub page to create a new repository.
39
+
1.Click on the Docker icon in your menu bar, and navigate to **Repositories > Create**. You'll be taken to a Docker Hub page to create a new repository.
40
40
41
-
2. Fill out the repository name as `bulletinboard`. Leave all the other options alone for now, and click **Create** at the bottom.
41
+
2.Fill out the repository name as `bulletinboard`. Leave all the other options alone for now, and click **Create** at the bottom.
42
42
43
43
{:width="100%"}
44
44
45
-
3. Now we're ready to share our image on Docker Hub, but there's one thing we must do first: images must be *namespaced correctly* to share on Docker Hub. Specifically, images must be named like `<Docker ID>/<Repository Name>:<tag>`. We can relabel our `bulletinboard:1.0` image like this (of course, please replace `gordon` with your Docker ID):
45
+
3.Now we're ready to share our image on Docker Hub, but there's one thing we must do first: images must be *namespaced correctly* to share on Docker Hub. Specifically, images must be named like `<Docker ID>/<Repository Name>:<tag>`. We can relabel our `bulletinboard:1.0` image like this (of course, please replace `gordon` with your Docker ID):
46
46
47
47
```shell
48
48
docker image tag bulletinboard:1.0 gordon/bulletinboard:1.0
0 commit comments