Docker快速入门终端错误拉图像

时间:2018-12-07 08:49:08

标签: docker

我试图将docker安装到我的“ Windows 10系列v.1803”中。我成功地成功安装了docker工具箱并启动了“ Docker Quickstart Terminal”。

但是,当键入docker pull hello-word时,出现以下错误:

Using default tag: latest
Error response from daemon: pull access denied for hello-word, repository does not exist or may require 'docker login'

我尝试登录并再次启动命令,但错误保持不变。

当我输入docker version时,我得到了:

Client:
 Version:       18.03.0-ce
 API version:   1.37
 Go version:    go1.9.4
 Git commit:    0520e24302
 Built: Fri Mar 23 08:31:36 2018
 OS/Arch:       windows/amd64
 Experimental:  false
 Orchestrator:  swarm

Server: Docker Engine - Community
 Engine:
  Version:      18.09.0
  API version:  1.39 (minimum version 1.12)
  Go version:   go1.10.4
  Git commit:   4d60db4
  Built:        Wed Nov  7 00:52:55 2018
  OS/Arch:      linux/amd64
  Experimental: false

当我输入docker info时,我明白了:

Containers: 0
 Running: 0
 Paused: 0
 Stopped: 0
Images: 0
Server Version: 18.09.0
Storage Driver: overlay2
 Backing Filesystem: extfs
 Supports d_type: true
 Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge host macvlan null overlay
 Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 468a545b9edcd5932818eb9de8e72413e616e86e
runc version: 69663f0bd4b60df09991c08812a60108003fa340
init version: fec3683
Security Options:
 seccomp
  Profile: default
Kernel Version: 4.14.79-boot2docker
Operating System: Boot2Docker 18.09.0 (TCL 8.2.1)
OSType: linux
Architecture: x86_64
CPUs: 1
Total Memory: 989.4MiB
Name: default
ID: I5OA:ASSA:S3VN:NELD:R5DN:UTLN:WXCG:PAN7:PDAW:AS5G:WM4B:IKDF
Docker Root Dir: /mnt/sda1/var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Username: nolwenn
Registry: https://index.docker.io/v1/
Labels:
 provider=virtualbox
Experimental: false
Insecure Registries:
 127.0.0.0/8
Live Restore Enabled: false

由于我已经在Windows中安装了ubuntu shell,因此我也尝试在此处安装docker(几乎可以正常工作),但出现以下错误:

$ sudo docker pull hello-word
Using default tag: latest
Warning: failed to get default registry endpoint from daemon (Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?). Using system default: https://index.docker.io/v1/
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

关于如何解决此问题的任何想法(除了“安装Windows Pro / Linux”之外)?

我已经检查了here,但找不到任何东西。

1 个答案:

答案 0 :(得分:1)

我不确定这是真正的问题还是错字,但您使用的图像不正确。 hello-word看起来不像公共dockerhub映像。

使用hello-world而非hello-word-

获取

$ docker pull hello-world

相关问题