Skip to content

Commit 4631a05

Browse files
committed
First push to convert all Docker Hub references to Docker Cloud and Docker Store
1 parent 37d4379 commit 4631a05

File tree

44 files changed

+116
-116
lines changed

Some content is hidden

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

44 files changed

+116
-116
lines changed

12factor/09_disposability.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Our application exposes HTTP endPoints that are easy and quick to handle. If we
1515

1616
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.
1717

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.
1919

2020
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.
2121

12factor/10_dev_prod_parity.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ The different environments must be as close as possible.
44

55
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.
66

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.
88

99
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.
1010

beginner/chapters/alpine.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ drwxr-xr-x 5 root root 4096 Mar 2 16:20 lib
3232
```
3333
What happened? Behind the scenes, a lot of stuff happened. When you call `run`,
3434
1. The Docker client contacts the Docker daemon
35-
2. The Docker daemon dowloads the image (alpine in this case) from Docker Hub
35+
2. The Docker daemon dowloads the image (alpine in this case) from Docker Store
3636
3. The Docker daemon creates the container and then runs a command in that container.
3737
4. The Docker daemon streams the output of the command to the Docker client
3838

@@ -93,7 +93,7 @@ In the last section, you saw a lot of Docker-specific jargon which might be conf
9393
- *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.
9494
- *Docker daemon* - The background service running on the host that manages building, running and distributing Docker containers.
9595
- *Docker client* - The command line tool that allows the user to interact with the Docker daemon.
96-
- *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.
9797

9898
## Next Steps
9999
For the next step in the tutorial, head over to [2.0 Webapps with Docker](./webapps.md)

beginner/chapters/setup.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## Setup
22

33
### 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/).
55

66
### Setting up your computer
77
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.

beginner/chapters/votingapp.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ cd example-voting-app
2121
```
2222

2323
### 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.
2525

2626
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.
2727

@@ -260,4 +260,4 @@ docker stack rm vote
260260
```
261261

262262
### 3.3 Next steps
263-
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/).

beginner/chapters/webapps.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ Great! So you have now looked at `docker run`, played with a Docker container an
44
### 2.1 Run a static website in a container
55
>**Note:** Code for this section is in this repo in the [static-site directory](https://github.com/docker/labs/tree/master/beginner/static-site).
66
7-
Let's start by taking baby-steps. First, we'll use Docker to run a static website in a container. The website is based on an existing image. We'll pull a Docker image from Docker Hub, run the container, and see how easy it is to set up a web server.
7+
Let's start by taking baby-steps. First, we'll use Docker to run a static website in a container. The website is based on an existing image. We'll pull a Docker image from Docker Store, run the container, and see how easy it is to set up a web server.
88

9-
The image that you are going to use is a single-page website that was already created for this demo and is available on the Docker Hub as [`dockersamples/static-site`](https://hub.docker.com/r/dockersamples/static-site/). You can download and run the image directly in one go using `docker run` as follows.
9+
The image that you are going to use is a single-page website that was already created for this demo and is available on the Docker Store as [`dockersamples/static-site`](https://store.docker.com/community/images/dockersamples/static-site). You can download and run the image directly in one go using `docker run` as follows.
1010

1111
```
1212
$ docker run -d dockersamples/static-site
@@ -107,7 +107,7 @@ CONTAINER ID IMAGE COMMAND CREATED
107107

108108
### 2.2 Docker Images
109109

110-
In this section, let's dive deeper into what Docker images are. You will build your own image, use that image to run an application locally, and finally, push some of your own images to Docker Hub.
110+
In this section, let's dive deeper into what Docker images are. You will build your own image, use that image to run an application locally, and finally, push some of your own images to Docker Cloud.
111111

112112
Docker images are the basis of containers. In the previous example, you **pulled** the *dockersamples/static-site* image from the registry and asked the Docker client to run a container **based** on that image. To see the list of images that are available locally on your system, run the `docker images` command.
113113

@@ -144,7 +144,7 @@ So for example, the `docker pull` command given below will pull an image named `
144144
$ docker pull ubuntu
145145
```
146146

147-
To get a new Docker image you can either get it from a registry (such as the Docker Hub) or create your own. There are hundreds of thousands of images available on [Docker hub](https://hub.docker.com). You can also search for images directly from the command line using `docker search`.
147+
To get a new Docker image you can either get it from a registry (such as the Docker Store) or create your own. There are hundreds of thousands of images available on [Docker Store](https://store.docker.com). You can also search for images directly from the command line using `docker search`.
148148

149149
An important distinction with regard to images is between _base images_ and _child images_.
150150

@@ -156,7 +156,7 @@ Another key concept is the idea of _official images_ and _user images_. (Both of
156156

157157
- **Official images** are Docker sanctioned images. Docker, Inc. sponsors a dedicated team that is responsible for reviewing and publishing all Official Repositories content. This team works in collaboration with upstream software maintainers, security experts, and the broader Docker community. These are not prefixed by an organization or user name. In the list of images above, the `python`, `node`, `alpine` and `nginx` images are official (base) images. To find out more about them, check out the [Official Images Documentation](https://docs.docker.com/docker-hub/official_repos/).
158158

159-
- **User images** are images created and shared by users like you. They build on base images and add additional functionality. Typically these are formatted as `user/image-name`. The `user` value in the image name is your Docker Hub user or organization name.
159+
- **User images** are images created and shared by users like you. They build on base images and add additional functionality. Typically these are formatted as `user/image-name`. The `user` value in the image name is your Docker Store user or organization name.
160160

161161
### 2.3 Create your first image
162162
>**Note:** The code for this section is in this repository in the [flask-app](https://github.com/docker/labs/tree/master/beginner/flask-app) directory.
@@ -258,7 +258,7 @@ Create a directory called `templates` and create an **index.html** file in that
258258
</html>
259259
```
260260
### 2.3.2 Write a Dockerfile
261-
We want to create a Docker image with this web app. As mentioned above, all user images are based on a _base image_. Since our application is written in Python, we will build our own Python image based on [Alpine](https://hub.docker.com/_/alpine/). We'll do that using a **Dockerfile**.
261+
We want to create a Docker image with this web app. As mentioned above, all user images are based on a _base image_. Since our application is written in Python, we will build our own Python image based on [Alpine](https://store.docker.com/images/alpine. We'll do that using a **Dockerfile**.
262262

263263
A [Dockerfile](https://docs.docker.com/engine/reference/builder/) is a text file that contains a list of commands that the Docker daemon calls while creating an image. The Dockerfile contains all the information that Docker needs to know to run the app &#8212; a base Docker image to run from, location of your project code, any dependencies it has, and what commands to run at start-up. It is a simple way to automate the image creation process. The best part is that the [commands](https://docs.docker.com/engine/reference/builder/) you write in a Dockerfile are *almost* identical to their equivalent Linux commands. This means you don't really have to learn new syntax to create your own Dockerfiles.
264264

@@ -335,7 +335,7 @@ A [Dockerfile](https://docs.docker.com/engine/reference/builder/) is a text file
335335

336336
Now that you have your `Dockerfile`, you can build your image. The `docker build` command does the heavy-lifting of creating a docker image from a `Dockerfile`.
337337

338-
When you run the `docker build` command given below, make sure to replace `<YOUR_USERNAME>` with your username. This username should be the same one you created when registering on [Docker hub](https://hub.docker.com). If you haven't done that yet, please go ahead and create an account.
338+
When you run the `docker build` command given below, make sure to replace `<YOUR_USERNAME>` with your username. This username should be the same one you created when registering on [Docker Cloud](https://cloud.docker.com). If you haven't done that yet, please go ahead and create an account.
339339

340340
The `docker build` command is quite simple - it takes an optional tag name with the `-t` flag, and the location of the directory containing the `Dockerfile` - the `.` indicates the current directory:
341341

@@ -422,9 +422,9 @@ Head over to `http://localhost:8888` and your app should be live. **Note** If yo
422422
Hit the Refresh button in the web browser to see a few more cat images.
423423

424424
### 2.3.4 Push your image
425-
Now that you've created and tested your image, you can push it to [Docker Hub](https://hub.docker.com).
425+
Now that you've created and tested your image, you can push it to [Docker Cloud](https://cloud.docker.com).
426426

427-
First you have to login to your Docker hub account, to do that:
427+
First you have to login to your Docker Cloud account, to do that:
428428

429429
```
430430
docker login
@@ -456,7 +456,7 @@ $ docker rm -f myfirstapp
456456

457457
Here's a quick summary of the few basic commands we used in our Dockerfile.
458458

459-
* `FROM` starts the Dockerfile. It is a requirement that the Dockerfile must start with the `FROM` command. Images are created in layers, which means you can use another image as the base image for your own. The `FROM` command defines your base layer. As arguments, it takes the name of the image. Optionally, you can add the Docker Hub username of the maintainer and image version, in the format `username/imagename:version`.
459+
* `FROM` starts the Dockerfile. It is a requirement that the Dockerfile must start with the `FROM` command. Images are created in layers, which means you can use another image as the base image for your own. The `FROM` command defines your base layer. As arguments, it takes the name of the image. Optionally, you can add the Docker Cloud username of the maintainer and image version, in the format `username/imagename:version`.
460460

461461
* `RUN` is used to build up the Image you're creating. For each `RUN` command, Docker will run the command then create a new layer of the image. This way you can roll back your image to previous states easily. The syntax for a `RUN` instruction is to place the full text of the shell command after the `RUN` (e.g., `RUN mkdir /user/local/foo`). This will automatically run in a `/bin/sh` shell. You can define a different shell like this: `RUN /bin/bash -c 'mkdir /user/local/foo'`
462462

@@ -475,7 +475,7 @@ Here's a quick summary of the few basic commands we used in our Dockerfile.
475475
>**Note:** The `EXPOSE` command does not actually make any ports accessible to the host! Instead, this requires
476476
publishing ports by means of the `-p` flag when using `$ docker run`.
477477

478-
* `PUSH` pushes your image to Docker Hub, or alternately to a [private registry](https://docs.docker.com/registry/)
478+
* `PUSH` pushes your image to Docker Cloud, or alternately to a [private registry](https://docs.docker.com/registry/)
479479

480480
>**Note:** If you want to learn more about Dockerfiles, check out [Best practices for writing Dockerfiles](https://docs.docker.com/engine/userguide/eng-image/dockerfile_best-practices/).
481481

developer-tools/java/chapters/appb-troubleshooting.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
=== Network Timed Out
77

8-
Depending upon the network speed and restrictions, you may not be able to download Docker images from Docker Hub. The error message may look like:
8+
Depending upon the network speed and restrictions, you may not be able to download Docker images from Docker Store. The error message may look like:
99

1010
```console
1111
$ docker pull arungupta/wildfly-mysql-javaee7

developer-tools/java/chapters/ch02-basic-concepts.adoc

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ Docker has three main components:
2222

2323
. __Images__ are the *build component* of Docker and are the read-only templates defining an application operating system.
2424
. __Containers__ are the *run component* of Docker and created from images. Containers can be run, started, stopped, moved, and deleted.
25-
. Images are stored, shared, and managed in a __registry__ and are the *distribution component* of Docker. Docker Hub is a publicly available registry and is available at http://hub.docker.com.
25+
. Images are stored, shared, and managed in a __registry__ and are the *distribution component* of Docker. Docker Store is a publicly available registry and is available at http://store.docker.com.
2626

2727
In order for these three components to work together, the *Docker Daemon* (or Docker Engine) runs on a host machine and does the heavy lifting of building, running, and distributing Docker containers. In addition, the *Client* is a Docker binary which accepts commands from the user and communicates back and forth with the Engine.
2828

2929
.Docker architecture
3030
image::docker-architecture.png[]
3131

32-
The Client communicates with the Engine that is either co-located on the same host or on a different host. Client uses the `pull` command to request the Engine to pull an image from the registry. The Engine then downloads the image from Docker Hub, or whichever registry is configured. Multiple images can be downloaded from the registry and installed on the Engine. Client uses the `run` run the container.
32+
The Client communicates with the Engine that is either co-located on the same host or on a different host. Client uses the `pull` command to request the Engine to pull an image from the registry. The Engine then downloads the image from Docker Store, or whichever registry is configured. Multiple images can be downloaded from the registry and installed on the Engine. Client uses the `run` run the container.
3333

3434
**How does a Docker Image work?**
3535

@@ -39,7 +39,7 @@ One of the reasons Docker is so lightweight is because of these layers. When you
3939

4040
Every image starts from a base image, for example `ubuntu`, a base Ubuntu image, or `fedora`, a base Fedora image. You can also use images of your own as the basis for a new image, for example if you have a base Apache image you could use this as the base of all your web application images.
4141

42-
NOTE: By default, Docker obtains these base images from Docker Hub.
42+
NOTE: By default, Docker obtains these base images from Docker Store.
4343

4444
Docker images are then built from these base images using a simple, descriptive set of steps we call instructions. Each instruction creates a new layer in our image. Instructions include actions like:
4545

developer-tools/java/chapters/ch04-run-container.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
= Run a Docker Container
44

5-
The first step in running any application using Docker is to run a container. There are plenty of images available at https://hub.docker.com[Docker Hub]. Docker client can simply run the container by giving the image. The client will check if the image already exists on Docker Host. If it exists then it'll run the containers, otherwise the host will first download the image.
5+
The first step in running any application using Docker is to run a container. There are plenty of images available at https://store.docker.com[Docker Store]. Docker client can simply run the container by giving the image. The client will check if the image already exists on Docker Host. If it exists then it'll run the containers, otherwise the host will first download the image.
66

77
== Pull Image
88

0 commit comments

Comments
 (0)