Docker – How to install on Win 10

By | 11/03/2020

In this post, we will see how to install Docker on Windows 10.
But, what Docker is?
From Wikipedia:
Docker is a set of platform as a service (PaaS) products that use OS-level virtualization to deliver software in packages called containers.
Containers are isolated from one another and bundle their own software, libraries and configuration files; they can communicate with each other through well-defined channels.
All containers are run by a single operating-system kernel and are thus more lightweight than virtual machines.

For every information, go to Docker official web site:

First of all, we have to download, from the Docker official web site, the last version of Docker Desktop, in order to run Docker on our desktop:

When the download is finished, double click on the file, for starting the installation:

If everything went fine, we should see an icon in the system tray:

and, if we open a CMD and run the command Docker version, we will see the version of Docker installed in the system:

Now, a list of some Docker commands:

docker run “name image”
It pulls a docker image (in this case hello-world) and run it in a container.
If we don’t have the image, automatically Docker will download tit.

docker images
It shows the list of all images downloaded:

docker ps
It shows the list of all active containers:

In this case, we don’t have any container, because the container Hello-world, after the display of the message “Hello world” it isn’t longer active.

docker ps –all
It shows the list of all containers, in any state.

In my case, I have two Hello-World, because I have run twice it.

docker rm “container id”
It deletes a container by Id.
For example, if we want to delete the first Hello-world container, web have to run:
docker rm eb1c9a964108

docker image rm “image id”
It deletes an image by Id.
For example, if we want to delete the Hello-world image, we have to run:
docker image rm 42514ac01c56

Leave a Reply

Your email address will not be published. Required fields are marked *