解决Docker添加Docker官方的GPG密钥报错gpg: can‘t open ‘–‘: No such file or directory

解决Docker添加Docker官方的GPG密钥报错gpg: can't open '–': No such file or directory

ubuntu下载安装docker添加Docker官方的GPG密钥报错会报以下错误

 

gpg: can't open '–': No such file or directory (23) Failed writing body

使用以下命令:

  1. curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add –

改成以下命令:

  1. curl -fsSL https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu/gpg | sudo apt-key add -

你可能感兴趣的:(docker,docker,容器,运维)