Skip to content

Commit e0d382d

Browse files
author
spara
committed
2 parents e444696 + 7755c49 commit e0d382d

File tree

856 files changed

+101011
-1619
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

856 files changed

+101011
-1619
lines changed

.github/ISSUE_TEMPLATE

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
** PLEASE ONLY USE THIS ISSUE TRACKER TO SUBMIT ISSUES WITH THE DOCKER LABS TUTORIAL CONTENT **
2+
3+
* If you have a bug working with Docker itself, not related to these labs, please file the bug on the [Docker repo](https://github.com/docker/docker) *
4+
* If you would like general support figuring out how to do something with Docker, please use the Docker Slack channel. If you're not on that channel, sign up for the [Docker Community](http://dockr.ly/MeetUp) and you'll get an invite. *
5+
* Or go to the [Docker Forums](https://forums.docker.com/) *
6+
7+
Please provide the following information so we can assess the issue you're having
8+
9+
**Which lab is it that you're having issues with?**
10+
11+
<!--
12+
Title or URL of the lab
13+
-->
14+
**Description**
15+
16+
<!--
17+
Briefly describe the problem you are having in a few paragraphs.
18+
-->
19+
20+
**Steps to reproduce the issue, if relevant:**
21+
1.
22+
2.
23+
3.
24+
25+
**Describe the results you received:**
26+
27+
28+
**Describe the results you expected:**
29+
30+
31+
**Additional information you deem important (e.g. issue happens only occasionally):**
32+
33+
**Output of `docker version`:**
34+
35+
```
36+
(paste your output here)
37+
```
38+
39+
**Output of `docker info`:**
40+
41+
```
42+
(paste your output here)
43+
```
44+
45+
**Additional environment details (AWS, Docker for Mac, Docker for Windows, VirtualBox, physical, etc.):**

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
.vscode/
2+
.DS_Store

12factor/03_configuration.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ In _config/connections.js_, we define the _mongo_ connection and use MONGO_URL e
1010
module.exports.connections = {
1111
mongo: {
1212
adapter: 'sails-mongo',
13-
url: process.env.MONGO_URL'
13+
url: 'process.env.MONGO_URL'
1414
}
1515
};
1616
```

12factor/05_build_release_run.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ There are several options to inject the configuration in the build, among them
5050
We'll go for the second option and define a docker-compose file where the MONGO_URL will be set with the value of the execution environment
5151

5252
```
53-
version: '2'
53+
version: '3'
5454
services:
5555
mongo:
5656
image: mongo:3.2

12factor/06_processes.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Once done, the app needs to be rebuilt `docker build -t message-app:v0.2 .`
3232
**REDIS_HOST** needs to be added to the docker-compose file as the new release will run against this kv store.
3333

3434
```
35-
version: '2'
35+
version: '3'
3636
services:
3737
mongo:
3838
image: mongo:3.2

12factor/07_port_binding.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ The host has the responsibility to route the request to the correct application
1111
Docker already handles that for us, as we can see in the docker-compose file. The **app** container exposes port 80 internally and the host maps it against its port 8000.
1212

1313
```
14-
version: '2'
14+
version: '3'
1515
services:
1616
mongo:
1717
image: mongo:3.2

12factor/08_concurrency.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ The app can be seen as a set of processes of different types
77
* worker
88
* cron
99

10-
Each process needs to be able to scale horizontally, it can have it's own internal multiplexing.
10+
Each process needs to be able to scale horizontally, it can have its own internal multiplexing.
1111

1212
## What does that mean for our application ?
1313

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
This repo contains [Docker](https://docker.com) labs and tutorials authored both by Docker, and by members of the community. We welcome contributions and want to grow the repo.
44

55
#### Docker tutorials:
6-
* [Docker for beginners] (beginner/readme.md)
6+
* [Docker for beginners](beginner/readme.md)
77
* [Docker Swarm Mode](swarm-mode/README.md)
88
* [Configuring developer tools and programming languages](developer-tools/README.md)
99
* Java
@@ -20,7 +20,7 @@ This repo contains [Docker](https://docker.com) labs and tutorials authored both
2020

2121
#### Community tutorials
2222
* [Docker Tutorials from the Community](https://github.com/docker/community/tree/master/Docker-Meetup-Content) - links to a different repository
23-
* [Advanced Docker orchestration workshop] (https://github.com/docker/labs/tree/master/Docker-Orchestration) - links to a different repository
23+
* [Advanced Docker orchestration workshop](https://github.com/docker/labs/tree/master/Docker-Orchestration) - links to a different repository
2424

2525
For more information on Docker, see the Official [Docker documentation](https://docs.docker.com).
2626

beginner/chapters/alpine.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,13 @@ drwxr-xr-x 5 root root 4096 Mar 2 16:20 lib
3030
......
3131
......
3232
```
33-
What happened? Behind the scenes, a lot of stuff happened. When you call `run`, the Docker client finds the image (alpine in this case), creates the container and then runs a command in that container. When you run `docker run alpine`, you provided a command (`ls -l`), so Docker started the command specified and you saw the listing.
33+
What happened? Behind the scenes, a lot of stuff happened. When you call `run`,
34+
1. The Docker client contacts the Docker daemon
35+
2. The Docker daemon dowloads the image (alpine in this case) from Docker Hub
36+
3. The Docker daemon creates the container and then runs a command in that container.
37+
4. The Docker daemon streams the output of the command to the Docker client
38+
39+
When you run `docker run alpine`, you provided a command (`ls -l`), so Docker started the command specified and you saw the listing.
3440

3541
Let's try something more exciting.
3642

beginner/chapters/setup.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Getting all the tooling setup on your computer can be a daunting task, but getti
88

99
The *getting started* guide on Docker has detailed instructions for setting up Docker on [Mac](https://docs.docker.com/docker-for-mac/), [Linux](https://docs.docker.com/engine/installation/linux/) and [Windows](https://docs.docker.com/docker-for-windows/).
1010

11-
*If you're using Docker for Windows* make sure you have [shared your drive](https://docs.docker.com/docker-for-windows/#/shared-drives).
11+
*If you're using Docker for Windows* make sure you have [shared your drive](https://docs.docker.com/docker-for-windows/#shared-drives).
1212

1313
*Important note* If you're using an older version of Windows or MacOS you may need to use [Docker Machine](https://docs.docker.com/machine/overview/) instead.
1414

0 commit comments

Comments
 (0)