why did the pulling process in docker act like this?

I just want to pull the ubuntu image from the docker‘s repository:

pete@pete-Aspire-4750:~$ sudo docker run ubuntu:14.04 /bin/echo "hello world"    
Unable to find image 'ubuntu:14.04' locally
ubuntu:14.04: The image you are pulling has been verified
53f858aaaf03: Downloading 57.31 MB/197.2 MB 1h57m42s
837339b91538: Download complete
615c102e2290: Download complete
b39b81afc8ca: Download complete     
511136ea3c5a: Already exists 

then nothing happened! is it beacause I’m in China ,so I can’t get the image behind the greatwall?
or something else?

  • How do I write a dockerfile to execute a simple bash script?
  • Apache Access/Error Logs Not Populated in Docker Container with Supervisor D
  • How can I link a Container Group with a Container?
  • docker pull hello-world - msg=“filesystem layer verification failed for digest”
  • Docker: Which approach is better? WAR embedded in image or base image + war?
  • How to mount the root directory of docker container as a NFS mount point
  • Use environment variable in a quote
  • Docker DNS Server not contactable outsid container
  • How to move a volume from to a new docker container?
  • creating a default database in mysql using dockerfile
  • Jenkins in docker, workspace location
  • Deploy Spring Cloud App into docker cluster using swarm
  • 2 Solutions collect form web for “why did the pulling process in docker act like this?”

    The output says that the download is complete. You can do a check by issuing the command sudo docker images. It will list the downloaded images like given below.

    ubuntu           13.10    5e019ab7bf6d  4 weeks ago  180 MB

    I’m speculating that it did work. The “hello world” should have appeared at the end. Did you try running the command a second time? Now that the image has been downloaded you should see the result immediately.

    Don’t forget every time you run the command you’re creating a container instance. These will accumulate locally:

    $ docker ps -a
    CONTAINER ID        IMAGE               COMMAND                CREATED              STATUS                          PORTS               NAMES
    9a31ad292a0a        ubuntu:14.04        "/bin/echo 'hello wo   About a minute ago   Exited (0) About a minute ago                       ecstatic_darwin     
    035cf18ee6a2        ubuntu:14.04        "/bin/echo 'hello wo   3 minutes ago        Exited (0) 3 minutes ago                            sick_hawking        

    A better way to issue the run command is to include the “–rm” option which will automatically delete the container instance when your finishing with them

    $ docker run --rm -it ubuntu:14.04 /bin/echo "hello world" 
    hello world

    Hope this helps.


    Downloading images behind firewalls is not uncommon, but your error message would explicitly show failures (Your output shows “Download complete” messages). This is normally fixed by setting the http proxy environment variable. See:

    • Cannot download Docker images behind a proxy
    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.