First it's a good idea to clone the git repository which contains the labs so everything's available locally.
$ cd [git repo project folder]
$ git clone https://github.com/puzzle/docker-techlab.git
Alternatively the repository can be downloaded as a zip file.
The page https://training.play-with-docker.com offers additional tutorials which also come with an interactive shell. The disadvantage is that you have to create an account, but if you don't want to install Docker locally, this is a great way to do the exercises in this Techlab using a Browser-based Docker shell.
To do this lab with Play with Docker:
- Go to https://labs.play-with-docker.com
- Click on Start
- Enter your Docker Login or register first.
- Click ADD NEW INSTANCE and you are ready to do this lab.
Please follow the instructions on Docker's official documentation to install Docker CE.
When asked to use Windows container, choose NOT to.
Note: You don't have to register for a Docker Cloud account.
If your organization has a proxy in place you have to configure it in your Docker configuration in order to be able to do docker search
or docker pull
.
Follow the instructions for your appropriate distribution. The recommended way of installing is using the repository, except if you already know you're going to remove the package again soon.
Unrelated to what distribution you use, also have a look at the post-installation steps. Please note however that these are optional steps and some are quite advanced, so going with the default might be the most appropriate way to go.
- Docker is a client-server application.
- The Docker daemon (or "Engine")
- Receives and processes incoming Docker API requests
- The Docker client
- Talks to the Docker daemon via the Docker API
- We'll use mostly the CLI embedded within the Docker binary
- The Docker Hub Registry
- Is a collection of public images
- The Docker daemon talks to it via the registry API