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: .github/ISSUE_TEMPLATE
+1-1
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
** PLEASE ONLY USE THIS ISSUE TRACKER TO SUBMIT ISSUES WITH THE DOCKER LABS TUTORIAL CONTENT **
2
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) *
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/moby/moby) *
4
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
5
* Or go to the [Docker Forums](https://forums.docker.com/) *
Copy file name to clipboardExpand all lines: 12factor/04_external_services.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -11,8 +11,8 @@ This ensure the application is loosely coupled with the services so it can easil
11
11
12
12
## What does that mean for our application ?
13
13
14
-
At this point, the only external service the application is using is MongoDB database. The loosely coupling is already done by the MONGO_URL used to pass the connection string.
14
+
At this point, the only external service the application is using is MongoDB database. The loose coupling is already done by the MONGO_URL used to pass the connection string.
15
15
16
-
If something wrong happens with our instance of MongoDB (assuming a single instance is used, which is generally a bad idea...), we can easily switch to a new instance, providing a new MONGO_URL environment variable and restart the application.
16
+
If something wrong happens with our instance of MongoDB (assuming a single instance is used, which is generally a bad idea...), we can easily switch to a new instance, providing a new MONGO_URL environment variable and restarting the application.
Copy file name to clipboardExpand all lines: 12factor/09_disposability.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ Our application exposes HTTP endPoints that are easy and quick to handle. If we
15
15
16
16
Kafka stores indexes of events processed by each worker. When a worker is restared, it can provide an index indicating at which point in time it needs to restart the event handling. Doing so no events are lost.
17
17
18
-
[Docker Hub](https://hub.docker.com) offers several image of Kafka ([Spotify](https://hub.docker.com/r/spotify/kafka/), [Wurstmeister](https://hub.docker.com/r/wurstmeister/kafka/), ...) that can easily be integrated in the docker-compose file of the application.
18
+
[Docker Store](https://store.docker.com) offers several image of Kafka ([Spotify](https://store.docker.com/community/images/spotify/kafka), [Wurstmeister](https://store.docker.com/community/images/wurstmeister/kafka), ...) that can easily be integrated in the docker-compose file of the application.
19
19
20
20
Below is an example of how Kafka (and zookeeper) could be added to our docker-compose file. Of course, this means the application has been slightly changed to be able to write and read to/from Kafka.
Copy file name to clipboardExpand all lines: 12factor/10_dev_prod_parity.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ The different environments must be as close as possible.
4
4
5
5
Docker is very good at reducing the gap as the same services can be deployed on the developer machine as they could on any Docker Hosts.
6
6
7
-
A lot of external services are available on the Docker Hub and can be used in an existing application. Using those components enables a developer to use Postgres in development instead of SQLite or other lighter alternative. This reduces the risk of small differences that could show up later, when the app is on production.
7
+
A lot of external services are available on the Docker Store and can be used in an existing application. Using those components enables a developer to use Postgres in development instead of SQLite or other lighter alternative. This reduces the risk of small differences that could show up later, when the app is on production.
8
8
9
9
This factor shows an orientation toward continuous deployment, where development can go from dev to production in a very short timeframe, thus avoiding the big bang effect at each release.
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 checks local store if the image (alpine in this case) is available locally, and if not, dowloads it from Docker Store. (Since we have issued `docker pull alpine` before, the download step is not necessary)
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.
34
40
35
41
Let's try something more exciting.
36
42
@@ -87,7 +93,7 @@ In the last section, you saw a lot of Docker-specific jargon which might be conf
87
93
-*Containers* - Running instances of Docker images — containers run the actual applications. A container includes an application and all of its dependencies. It shares the kernel with other containers, and runs as an isolated process in user space on the host OS. You created a container using `docker run` which you did using the alpine image that you downloaded. A list of running containers can be seen using the `docker ps` command.
88
94
-*Docker daemon* - The background service running on the host that manages building, running and distributing Docker containers.
89
95
-*Docker client* - The command line tool that allows the user to interact with the Docker daemon.
90
-
-*Docker Hub* - A [registry](https://hub.docker.com/explore/) of Docker images. You can think of the registry as a directory of all available Docker images. You'll be using this later in this tutorial.
96
+
-*Docker Store* - A [registry](https://store.docker.com/) of Docker images, where you can find trusted and enterprise ready containers, plugins, and Docker editions. You'll be using this later in this tutorial.
91
97
92
98
## Next Steps
93
99
For the next step in the tutorial, head over to [2.0 Webapps with Docker](./webapps.md)
Copy file name to clipboardExpand all lines: beginner/chapters/setup.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
## Setup
2
2
3
3
### Prerequisites
4
-
There are no specific skills needed for this tutorial beyond a basic comfort with the command line and using a text editor. Prior experience in developing web applications will be helpful but is not required. As you proceed further along the tutorial, we'll make use of [Docker Hub](https://hub.docker.com/).
4
+
There are no specific skills needed for this tutorial beyond a basic comfort with the command line and using a text editor. Prior experience in developing web applications will be helpful but is not required. As you proceed further along the tutorial, we'll make use of [Docker Cloud](https://cloud.docker.com/).
5
5
6
6
### Setting up your computer
7
7
Getting all the tooling setup on your computer can be a daunting task, but getting Docker up and running on your favorite OS has become very easy.
Copy file name to clipboardExpand all lines: beginner/chapters/votingapp.md
+17-4
Original file line number
Diff line number
Diff line change
@@ -21,9 +21,9 @@ cd example-voting-app
21
21
```
22
22
23
23
### 3.1 Deploying the app
24
-
For this first stage, we will use existing images that are in Docker Hub.
24
+
For this first stage, we will use existing images that are in Docker Store.
25
25
26
-
This app relies on [Docker Swarm mode](https://docs.docker.com/engine/swarm/). Swarm mode is the cluster management and orchestration features embedded in the Docker. You can easily deploy to a swarm using a file that declares your desired state for the app. Swarm allows you to run your containers on more than one machine. In this tutorial, you can run on just one machine, or you can use something like [Docker for AWS](https://beta.docker.com/) or [Docker for Azure](https://beta.docker.com/) to quickly create a multiple node machine. Alternately, you can use Docker Machine to create a number of local nodes on your development machine. See [the Swarm Mode lab](../../swarm-mode/beginner-tutorial/README.md#creating-the-nodes-and-swarm) for more information.
26
+
This app relies on [Docker Swarm mode](https://docs.docker.com/engine/swarm/). Swarm mode is the cluster management and orchestration features embedded in the Docker engine. You can easily deploy to a swarm using a file that declares your desired state for the app. Swarm allows you to run your containers on more than one machine. In this tutorial, you can run on just one machine, or you can use something like [Docker for AWS](https://beta.docker.com/) or [Docker for Azure](https://beta.docker.com/) to quickly create a multiple node machine. Alternately, you can use Docker Machine to create a number of local nodes on your development machine. See [the Swarm Mode lab](../../swarm-mode/beginner-tutorial/README.md#creating-the-nodes-and-swarm) for more information.
Now take it for a spin again. Go to the URLs you used in section [3.1](#31-deploying-the-app) and see the new votes.
248
253
254
+
#### 3.2.5 Remove the stack
255
+
256
+
Remove the stack from the swarm.
257
+
258
+
```
259
+
docker stack rm vote
260
+
```
261
+
249
262
### 3.3 Next steps
250
-
Now that you've built some images and pushed them to docker hub, and learned the basics of Swarm mode, you can explore more of Docker by checking out [the documentation](https://docs.docker.com). And if you need any help, check out the [Docker Forums](forums.docker.com) or [StackOverflow](https://stackoverflow.com/tags/docker/).
263
+
Now that you've built some images and pushed them to Docker Cloud, and learned the basics of Swarm mode, you can explore more of Docker by checking out [the documentation](https://docs.docker.com). And if you need any help, check out the [Docker Forums](forums.docker.com) or [StackOverflow](https://stackoverflow.com/tags/docker/).
0 commit comments