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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With