Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to stop docker pull

Tags:

docker

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, Nethogs docker progress

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.

like image 698
Stranger Avatar asked Apr 07 '15 07:04

Stranger


1 Answers

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

like image 129
user2915097 Avatar answered Oct 01 '22 05:10

user2915097