Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Docker push already in progress

I interrupted the following command : docker push <user>/docker-whale.

If I try running it again, I get :

Error response from daemon: push <user>/docker-whale is already in progress

I understand that the upload is still running in the background and that I only interrupted the client output. However, is there a way to get it back?

Also, if it's somehow stuck, how would you restart the push operation?

like image 868
Marc Perrin-Pelletier Avatar asked Jun 25 '15 10:06

Marc Perrin-Pelletier


People also ask

How do I stop docker from pushing?

Refer to the docker image tag reference for more information about valid image and tag names. Killing the docker image push process, for example by pressing CTRL-c while it is running in a terminal, terminates the push operation.

Does docker push overwrite?

Will it overwrite existing image with the latest version? Yep.

How long does a container stay in the running state?

1. Overview. In this tutorial, we'll explore ways to keep Docker containers running indefinitely. By default, containers run only as long as their default command executes but a common use case it´s to run them indefinitely for debugging and troubleshooting purposes.

How do I push to docker?

To push an image to Docker Hub, you must first name your local image using your Docker Hub username and the repository name that you created through Docker Hub on the web. You can add multiple images to a repository by adding a specific :<tag> to them (for example docs/base:testing ).


1 Answers

This happens because you stopped pushing before it was finished. You don't need to remove the containers; just restart boot2docker(or docker service).

Command maybe: 
    boot2docker restart (on Mac)
    service docker restart (on Linux)

After that, you can push your image again, Good Luck!

like image 179
kagb Avatar answered Sep 17 '22 21:09

kagb