Home > Article > Operation and Maintenance > What should I do if docker fails to start the hello-world container?
Problem description:
The image file hello-world has been captured to the local warehouse, but an error occurred when running the following command to run the image file.
docker container run hello-world
Cause analysis:
Docker uses the overlay2 file system, and the system can only recognize the overlay file system by default.
Solution:
1. Stop the docker service
systemctl stop docker
2. Delete the docker file:
rm -rf /var/lib/docker
This command will delete all image mirrors, it is recommended Back up your files in advance.
3. Edit the file
vi /etc/sysconfig/docker-storage
Modify the contents of the docker-storage file as follows:
The above is the detailed content of What should I do if docker fails to start the hello-world container?. For more information, please follow other related articles on the PHP Chinese website!