Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get status of an ongoing docker image pull

Tags:

How to get status of a running docker pull process? I tried pulling busybox with sudo docker pull busybox . But no status is being displayed. On issuing another pull request after a ctrl+c it says that image is already being pulled by another client.Also I tried cancelling the ongoing pull and I couldnt here is a bug report regarding the issue.

$sudo docker pull busybox
Repository busybox already being pulled by another client. Waiting.

How can I display the progress of an ongoing docker pull?

like image 663
cutteeth Avatar asked Feb 27 '15 07:02

cutteeth


People also ask

How do I know if my docker image is running?

Another way to check for a running Docker daemon is by inspecting its process ID file. The daemon writes its process ID to /var/run/docker. pid each time it starts up. When this file exists, Docker should be running and ready for CLI connections.

How can I track my docker container status?

You can use the docker stats command to live stream a container's runtime metrics. The command supports CPU, memory usage, memory limit, and network IO metrics.

What is the docker command to list of current images?

The easiest way to list Docker images is to use the “docker images” with no arguments. When using this command, you will be presented with the complete list of Docker images on your system. Alternatively, you can use the “docker image” command with the “ls” argument.

Does docker run pull the latest image?

Step 2: Pull the Latest ImageBy default, Docker pulls the latest version. To ensure it does so, you can add the :latest tag.


1 Answers

This wasn't available at the time the question was asked (2015)

Now, if you run the same docker pull in two windows you see the same status, i.e. which layers are being downloaded, how far it got, etc.

If you kill just one of those two docker pull commands, the other one carries on.

If you kill the last client that requested a pull, the pull operation terminates.

[original answer follows...]

This is a proposed feature of Docker. See ongoing discussion at https://github.com/docker/docker/issues/6928:

My proposal is as follows.

  • docker pull --list to list all the current running docker pulls
  • docker pull --resume to resume a given pull
  • docker pull --rm to remove a given pull
like image 109
Bryan Avatar answered Sep 23 '22 09:09

Bryan