一.Ubuntu安装Docker | 您所在的位置:网站首页 › docker不用再sudo › 一.Ubuntu安装Docker |
1.更新apt包索引: $ sudo apt-get update2.安装 apt 依赖包,用于通过HTTPS来获取仓库: $ sudo apt-get install \ apt-transport-https \ ca-certificates \ curl \ gnupg-agent \ software-properties-common3.添加 Docker 的官方 GPG 密钥: $ curl -fsSL https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu/gpg | sudo apt-key add -4.9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88 通过搜索指纹的后8个字符,验证您现在是否拥有带有指纹的密钥: $ sudo apt-key fingerprint 0EBFCD885.下载docker: curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun 6.验证安装: $ sudo docker run hello-world
|
CopyRight 2018-2019 实验室设备网 版权所有 |