Running and Verifying Docker
- Run Docker.
1docker run hello-world
As shown in the following figure, Docker obtains the hello-world image from Docker Hub and runs the image. Docker is successfully installed.
Figure 1 docker hello world
- Check the Docker services of all containers on the local host.
1docker ps -a
The following figure shows the command output. The container has been created and the Docker service is available.

After Docker is installed, the local image library is empty. You can run the docker run hello-world command to verify that Docker can obtain images from Docker Hub and create containers using the image.
Parent topic: Docker 19.03.10 Installation Guide (CentOS & openEuler)