如何停止码头拉 [英] How to stop docker pull

查看:195
本文介绍了如何停止码头拉的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚开始学习码头工作。在一个教程中,我看到了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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆