错误原因:是因为国内安全机构发现docker有些镜像涉及安全的问题,所以设置了网络
那么我们应该怎么解决问题?
解决方案:使用国内镜像源
- 阿里源
- [清华源]()
- 华为源
[root@web-server18-20 ~]# yum-config-manager --add-repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
[root@web-server18-20 ~]# sudo yum install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
Failed to set locale, defaulting to C.UTF-8
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered with an entitlement server. You can use subscription-manager to register.
Docker CE Stable - x86_64 139 kB/s | 66 kB 00:00
Last metadata expiration check: 0:00:01 ago on Wed Jul 10 15:23:43 2024.
Dependencies resolved.
=====================================================================================================================================================
Package Architecture Version Repository Size
=====================================================================================================================================================
Installing:
containerd.io x86_64 1.6.32-3.1.el8 docker-ce-stable 35 M
docker-buildx-plugin x86_64 0.14.0-1.el8 docker-ce-stable 14 M
docker-ce x86_64 3:26.1.3-1.el8 docker-ce-stable 27 M
docker-ce-cli x86_64 1:26.1.3-1.el8 docker-ce-stable 7.8 M
docker-compose-plugin x86_64 2.27.0-1.el8 docker-ce-stable 13 M
评论 (0)