Installed Docker V1.13.1 on centos7.3 using yum But when running: docker run hello-world, an error is reported:
solve: The main reason is the compatibility issue of the centos system version. If the system is updated and upgraded, the problem can be solved.
Before update: After update: At this time, restart docker and run hello-world: Additional knowledge: Deleting the none image Delete the none image // Stop all containers docker ps -a | grep "Exited" | awk '{print $1 }'|xargs docker stop // Delete all stopped containers docker ps -a | grep "Exited" | awk '{print $1 }'|xargs docker rm // Delete all images with tag none docker images|grep none|awk '{print $3 }'|xargs docker rmi You can edit ~/.zshrc (or ~/.bashrc) to specify the command alias alias dnone="docker images|grep none|awk '{print $3}'|xargs docker rmi" source ~/.zshrc ####################Official deletion command################ The reasons for the generation of the none image are: how come Combined with the first picture, let's sort out how dangling images are generated: The image ID generated when the image is built for the first time is 079dbd67f9f4, and this image will be labeled bolingcavalry/eureka-server:0.0.1-SNAPSHOT by the build tool; The image ID generated when the image is built for the second time is e40a97f764ef. This image will be labeled bolingcavalry/eureka-server:0.0.1-SNAPSHOT by the build tool. Docker will remove the tag of 079dbd67f9f4, and 079dbd67f9f4 will become a dangling image, which will be displayed as <none>:<none> in the image list. The official command provided is as follows to delete it. Note: If the none image is in use, it will not be deleted:
The above article on solving the problem of running hello-world after installing Docker is all the content that the editor shares with you. I hope it can give you a reference, and I also hope that you will support 123WORDPRESS.COM. You may also be interested in:
|
<<: Go to another file after submitting the form
>>: Six inheritance methods in JS and their advantages and disadvantages
Table of contents 1. Introduction 2. Installation...
Today at work, a friend I added temporarily asked ...
This article records the detailed tutorial of MyS...
Table of contents 1. What is JavaScript? 2. What ...
difficulty Two mask creation of svg graphics Firs...
1. Introduction to Apache Bench ApacheBench is a ...
vue-router has two modes hash mode History mode 1...
After configuring VIP, the error message that app...
Here is an introduction to changing the password ...
This article example shares the specific code of ...
Anyone who has worked on a large system knows tha...
Preface Not long ago, I saw an interesting proble...
Preface In MySQL, InnoDB belongs to the storage e...
1. Unzip the mysql compressed package to the /usr...
1. Design source code Copy code The code is as fol...