安装代码
apt-get remove docker docker-engine docker-ce docker.io
apt-get install -y apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
apt-get update
apt-get install -y docker-ce
查看状态
查看是否启动docker
systemctl status docker
本文档详细介绍了在Ubuntu系统上安装Docker的步骤,包括添加Docker的官方GPG密钥,设置软件源,更新包列表以及安装Docker CE。最后,通过`systemctl status docker`命令检查Docker服务是否已启动,为系统管理员提供了一站式的Docker部署参考。

5279

被折叠的 条评论
为什么被折叠?



