2,更新系统软件 $ sudo apt-get update 3,安装依赖包 $ sudo apt-get install \ apt-transport-https \ ca-certificates \ curl \ software-properties-common 4,添加官方密钥 执行该命令时,如遇到长时间没有响应说明网络连接不到docker网站,需要使用代-理进行. $ curl -fsSL https://download.docker.com/linux/ubuntu/gpg…