如何停止码头拉 [英] How to stop docker pull
问题描述
docker pull container-name
一样使用从Docker中心库中拉出相应的容器。 但是,如果您使用Ctrl + C取消拉动,则正在从正在进行的进度中退出,但不会停止下载, nethogs
显示,
我在Google上搜索了相同的内容。但是我看不到有关这方面的任何有用信息。什么是正确的方式取消码头拉?请帮助。
目前还没有直接的方法来停止码头拉线的进程。您应该通过使用
sudo service docker restart
这将停止正在进行的docker的拉动。有关详细信息,请查看此github码头问题, https://github.com/docker/docker/issues / 6928
注意:此命令将停止系统中的所有正在运行的容器
I have just started learning docker. In a tutorial, I saw the docker pull command which can be used like docker pull container-name
to pull the respective container from the docker hub repository.
But in case, if you cancel the pull by using "Ctrl + C", it is exiting from the ongoing progress but not stopping the download which I was confirmed by using nethogs
which is showing,
I searched in Google for the same. But I couldn't see any useful information regarding this. What is the right way of cancelling the docker pull? Please help.
There is no direct way to stop the ongoing process of docker pull as of now. You should restart the docker service by using,
sudo service docker restart
This will stop the ongoing pull of docker. For more details please check this github docker issue, https://github.com/docker/docker/issues/6928
CAUTION: This command will stop all the running containers in the system
这篇关于如何停止码头拉的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!