8wDlpd.png
8wDFp9.png
8wDEOx.png
8wDMfH.png
8wDKte.png

Docker run 不起作用,即使它可以拉取镜像并且 docker 正在运行

Satyajay Prabhakar 2月前

44 0

这是我的电脑配置。pegasus@pegasus:~$ uname -aLinux pegasus 6.8.0-36-generic #36-Ubuntu SMP PREEMPT_DYNAMIC Mon Jun 10 10:49:14 UTC 2024 x86_64 x86_64 x86_64 GNU/Linuxpegasus@pegasus:~$ cat /e...

这是我的电脑配置。

pegasus@pegasus:~$ uname -a
Linux pegasus 6.8.0-36-generic #36-Ubuntu SMP PREEMPT_DYNAMIC Mon Jun 10 10:49:14 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
pegasus@pegasus:~$ cat /etc/os-release 
PRETTY_NAME="Ubuntu 24.04 LTS"
NAME="Ubuntu"
VERSION_ID="24.04"
VERSION="24.04 LTS (Noble Numbat)"
VERSION_CODENAME=noble
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=noble
LOGO=ubuntu-logo

我已经按照此处所述的方式设置了我的 docker。 守护进程的错误响应:获取 \'https://registry-1.docker.io/v2/\':proxyconnect tcp:dial tcp:lookup proxy.example.com on 8.8.8.8:53:没有这样的主机

但是目前执行 sudo apt upgrade 之后,我面临的问题是即使在拉取之后也无法运行大多数 docker 镜像。

pegasus@pegasus:~$ docker images
REPOSITORY    TAG       IMAGE ID       CREATED         SIZE
ubuntu        22.04     8a3cdc4d1ad3   9 days ago      77.9MB
hello-world   latest    d2c94e258dcb   14 months ago   13.3kB
pegasus@pegasus:~$ docker run ubuntu:22.04
pegasus@pegasus:~$ docker ps
CONTAINER ID   IMAGE     COMMAND   CREATED   STATUS    PORTS     NAMES
pegasus@pegasus:~$ systemctl status docker
 docker.service - Docker Application Container Engine
     Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled; preset: enabled)
     Active: active (running) since Sun 2024-07-07 10:40:21 +06; 7min ago
TriggeredBy:  docker.socket
       Docs: https://docs.docker.com
   Main PID: 3589 (dockerd)
      Tasks: 16
     Memory: 112.9M (peak: 115.2M)
        CPU: 695ms
     CGroup: /system.slice/docker.service
             3589 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock

জুলাই 07 10:40:20 pegasus systemd[1]: Starting docker.service - Docker Application Container Engine...
জুলাই 07 10:40:20 pegasus dockerd[3589]: time="2024-07-07T10:40:20.790924612+06:00" level=info msg="Starting up"
জুলাই 07 10:40:20 pegasus dockerd[3589]: time="2024-07-07T10:40:20.873556063+06:00" level=info msg="[graphdriver] using prior storage driver: overlay2"
জুলাই 07 10:40:20 pegasus dockerd[3589]: time="2024-07-07T10:40:20.875291689+06:00" level=info msg="Loading containers: start."
জুলাই 07 10:40:21 pegasus dockerd[3589]: time="2024-07-07T10:40:21.049643248+06:00" level=info msg="Default bridge (docker0) is assigned with an IP address 172.17.0.0/16. Daemon option --bip>
জুলাই 07 10:40:21 pegasus dockerd[3589]: time="2024-07-07T10:40:21.139310021+06:00" level=info msg="Loading containers: done."
জুলাই 07 10:40:21 pegasus dockerd[3589]: time="2024-07-07T10:40:21.159863331+06:00" level=info msg="Docker daemon" commit=c8af8eb containerd-snapshotter=false storage-driver=overlay2 version>
জুলাই 07 10:40:21 pegasus dockerd[3589]: time="2024-07-07T10:40:21.160313458+06:00" level=info msg="Daemon has completed initialization"
জুলাই 07 10:40:21 pegasus dockerd[3589]: time="2024-07-07T10:40:21.216982812+06:00" level=info msg="API listen on /run/docker.sock"
জুলাই 07 10:40:21 pegasus systemd[1]: Started docker.service - Docker Application Container Engine.

我该如何修复它?

帖子版权声明 1、本帖标题:Docker run 不起作用,即使它可以拉取镜像并且 docker 正在运行
    本站网址:http://xjnalaquan.com/
2、本网站的资源部分来源于网络,如有侵权,请联系站长进行删除处理。
3、会员发帖仅代表会员个人观点,并不代表本站赞同其观点和对其真实性负责。
4、本站一律禁止以任何方式发布或转载任何违法的相关信息,访客发现请向站长举报
5、站长邮箱:yeweds@126.com 除非注明,本帖由Satyajay Prabhakar在本站《ubuntu》版块原创发布, 转载请注明出处!
最新回复 (0)
  • askubuntu 上的重复内容要好得多。这个问题与编程无关。而且它与 Ubuntu 密切相关,而不仅仅是

返回
作者最近主题: