使用apt安装docker


使用apt安装docker

# 更新数据源 apt-get update # 安装所需依赖 apt-get -y install apt-transport-https ca-certificates curl software-properties-common #安装GPG证书 curl -fsSL https://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | sudo apt-key add - #新增数据源 add-apt-repository "deb [arch=amd64] http://mirrors.aliyun.com/docker-ce/linux/ubuntu $(lsb_release -cs) stable" #更新并安装docker apt-get update && apt-get install -y docker-ce # 验证安装 docker version 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM