Managing containers with Docker
Enough theory; let’s get practical. In this section, we’ll explore how to manage containers with Docker.
Installing Docker and using prebuilt images
Let’s install Docker and explore how to use it to manage containers:
- If you do not already have Docker Desktop installed on your computer, please install it now from the following link: https://www.docker.com/products/docker-desktop/.
The latest version of Docker Desktop at the time of writing was 4.28.0. You will see the version on the right side of the status bar, as shown in Figure 15.3. You will be notified if you need to update to a newer version.
- Start Docker Desktop and note the user interface, including the Containers view, which will probably be empty if you have not run any containers yet, as shown in Figure 15.3:
Figure 15.3: The Containers view in Docker Desktop
- In the left navigation bar, click...