我刚刚开始学习docker。在教程中,我看到了 docker pull 命令,可以像这样使用docker pull container-name
从 docker hub 存储库中提取相应的容器。
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,
我在谷歌上搜索了同样的内容。但我看不到任何与此相关的有用信息。取消 docker pull 的正确方法是什么?请帮忙。
目前还没有直接的方法来停止正在进行的 docker pull 进程。您应该使用以下命令重新启动 docker 服务:
sudo service docker restart
这将停止 docker 的持续拉动。有关更多详细信息,请查看此 github docker 问题,https://github.com/docker/docker/issues/6928 https://github.com/docker/docker/issues/6928
注意:此命令将停止系统中所有正在运行的容器
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)