docker pull 报错:missing signature key


docker 拉取镜像的时候报错:missing signature key

原因:docker 版本太低了,需要升级。建议卸载、重新安装

[root@iZbp1iexv86gtywcxse7s0Z docker]# docker version
Client:
 Version:         1.13.1
 API version:     1.26
 Package version: docker-1.13.1-209.git7d71120.el7.centos.x86_64
 Go version:      go1.10.3
 Git commit:      7d71120/1.13.1
 Built:           Wed Mar  2 15:25:43 2022
 OS/Arch:         linux/amd64

Server:
 Version:         1.13.1
 API version:     1.26 (minimum version 1.12)
 Package version: docker-1.13.1-209.git7d71120.el7.centos.x86_64
 Go version:      go1.10.3
 Git commit:      7d71120/1.13.1
 Built:           Wed Mar  2 15:25:43 2022
 OS/Arch:         linux/amd64
 Experimental:    false
[root@iZbp1iexv86gtywcxse7s0Z docker]#

卸载docker

查看已经安装的docker

yum list installed |grep docker
[root@iZbp1iexv86gtywcxse7s0Z docker]# yum list installed |grep docker
docker.x86_64                       2:1.13.1-209.git7d71120.el7.centos @extras
docker-client.x86_64                2:1.13.1-209.git7d71120.el7.centos @extras
docker-common.x86_64                2:1.13.1-209.git7d71120.el7.centos @extras

卸载

yum -y remove docker.x86_64 docker-client.x86_64 docker-common.x86_64

再次输入 yum list installed |grep docker 查看是否删除成功

安装docker

安装所需的包

yum-utils提供了yum-config-manager 效用,并device-mapper-persistent-data和lvm2由需要 devicemapper存储驱动程序。

sudo yum install -y yum-utils device-mapper-persistent-data lvm2

设置稳定存储库yum源为阿里docker源

yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo

安装最新版本

sudo yum install -y docker-ce

启动并加入开启启动

sudo systemctl start docker
sudo systemctl enable docker

验证安装是否成功

docker version

docker常用管理命令

#docker启动
sudo systemctl start docker

#设置开机自启动
sudo systemctl enable docker

#重启docker
sudo systemctl restart  docker

#关闭docker
sudo  systemctl stop docker

#查看是否启动成功
docker ps -a

参考

[1]Centos安装和卸载docker



文章作者: Alex
版权声明: 本博客所有文章除特別声明外,均采用 CC BY 4.0 许可协议。转载请注明来源 Alex !
  目录