Running the first container
Before we start, we want to make sure that Docker is installed correctly on your system and ready to accept your commands. Open a new terminal window and type in the following command (note: do not type the $
sign, as it is a placeholder for your prompt):
$ docker version
If everything works correctly, you should see the version of the Docker client and server installed on your laptop output in the terminal. At the time of writing, it looks like this:
Figure 3.1 – Output of the docker version command
As you can see, I have version 20.10.20
installed on my MacBook Air M1 laptop.
If this doesn’t work for you, then something with your installation is not right. Please make sure that you have followed the instructions in the previous chapter on how to install Docker Desktop on your system.
So, you’re ready to see some action. Please type the following command into your terminal window and hit the...