可以使用uname -a 获取系统信息(使用 root
权限登录 Centos)
第一步
为了安装最先版本的Docker更新yum包,命令:
$ yun update
第二步:安装Docker
$ curl -fsSL https://get.docker.com/ | sh
第三部: 运行Docker
$ systemctl start docker root
$ systemctl status docker root
$ systemctl enable docker
$ docker version
第四部:运行docker hello world示例:
$ $ docker pull hello-world