简体   繁体   中英

“docker pull ubuntu ” doesn't work

I'm trying to follow the docker hello world example but when I enter the following command and my password nothing happens:

$ sudo docker pull ubuntu
[sudo] password for mike:

It literally stays like that for ages. I've tried on two different Ubuntu 12.04 desktops and it's always the same.

UPDATE : What is actually going on is that a new window is opened which is extremely small, when I expand it the window has no content. if I close the window I get the message:

XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":0"
      after 32 requests (32 known processed) with 0 events remaining.

UPDATE 2 : Turns out this isn't a real problem, the program I was running was in fact not docker . - A word of warning, sudo apt-get install docker on Ubuntu installs another program called docker, not the virtualization tool.

我认为如果您按照其他问题中所述正确安装docker,就可以解决此问题。Docker会打开一个小小的新窗口,不执行任何操作

That's weird! To decompose between a possible sudo issue and a docker issue, can you try the following:

  • first, run sudo ls ; this should ask for your password, and if successful, it will just list the current directory; but in the process, it will enable your session to use further sudo commands without typing your passwords again;
  • then, run sudo docker ps ; this shouldn't ask for your password, and if successful, this should output one line of header, and return to the prompt;
  • finally, try sudo docker pull ubuntu and see what happens.

On debian and ubuntu the package as well as the executable/command is called docker.io .

You should better run

$ sudo docker.io pull ubuntu

Btw.: docker is (also) a “system tray for KDE3/GNOME2 docklet applications”.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM