泊坞窗:未授权:manjaro OS上需要身份验证

时间:2020-05-05 16:06:50

标签: linux docker manjaro

我对Docker或Linux不太满意,无论如何我都无法运行Docker映像。我只是安装了清晰的Linux OS(尝试了两次),并尝试安装docker并启动了一些容器。

我可以运行docker run hello-world并获得正确的数据,但是如果我执行docker run ubuntu,则它将加载约5分钟,然后出现错误:

[york@york docker-git]$ docker run ubuntu
Unable to find image 'ubuntu:latest' locally
latest: Pulling from library/ubuntu
docker: unauthorized: authentication required.
See 'docker run --help'.

我尝试了类似nginx或java的不同图像。 当然,我使docker login不变...

也尝试使用MTU制作一些东西,在/etc/docker/daemon.json中将mtu分别设置为900、1454和1500,但也许在这里做错了。或其他任何地方。

我的步骤

  1. 安装docker
  2. systemctl start docker
  3. systemctl enable docker
  4. docker run ubuntu

OS:Manjaro KDE

wget

[york @ york ~] $ wget https://google.com/
--2020-05-06 22: 19: 45-- https://google.com/
Certificate loaded CA "/etc/ssl/certs/ca-certificates.crt"
Recognized by google.com (google.com) ... 64.233.161.113, 64.233.161.101, 64.233.161.139, ...
Connection to google.com (google.com) | 64.233.161.113 |: 443 ... connection established.
HTTP request sent. Waiting for an answer ... 301 Moved Permanently
Address: https://www.google.com/ [transition]
--2020-05-06 22: 19: 46-- https://www.google.com/
Recognized by www.google.com (www.google.com) ... 64.233.164.104, 64.233.164.105, 64.233.164.99, ...
Connection to www.google.com (www.google.com) | 64.233.164.104 |: 443 ... the connection is established.
HTTP request sent. Waiting for a response ... 200 OK
Length: no data [text / html]
Save to: "index.html.1"

index.html.1 [<=>] 18.54K --.- KB / s for 0.09s

2020-05-06 22:19:46 (216 KB / s) - “index.html.1” was saved [18984]

1 个答案:

答案 0 :(得分:0)

  1. 注册:https://hub.docker.com/
  2. 在shell中登录:docker login
  3. docker运行ubuntu