我对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,但也许在这里做错了。或其他任何地方。
我的步骤
systemctl start docker
systemctl enable docker
docker run ubuntu
OS:Manjaro KDE
[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]