Public key for docker-ce-19.03.12-3.el7.x86_64.rpm is not installed 电脑版发表于:2020/9/3 14:35 centos安装docker报错:Public key for docker-ce-19.03.12-3.el7.x86_64.rpm is not installed ![](https://img.tnblog.net/arcimg/aojiancc2/80089b095d1846339eb56dbc2e1ee438.png) 错误原因是公钥未安装 解决方法,退出安装docker然后执行两个命令后在安装即可 先执行: ``` wget https://get.docker.com/gpg ``` 在执行: ``` rpmkeys --import ./gpg ``` 在命令行执行的效果如下: ![](https://img.tnblog.net/arcimg/aojiancc2/4163f0c2014b4713a5e065f5859ce0b5.png)