docker
1)安装docker
sudo yum install docker
2)启动docker
systemctl start docker.service
3)配置开机启动
[root@localhost ~]#systemctl enable docker.service
Created symlink from /etc/systemd/system/multi-user.target.wants/docker.service to /usr/lib/systemd/system/docker.service.
[root@localhost ~]#shutdown -r now 重新启动
[root@localhost ~]# systemctl status docker 查看是否启动状态
4)查看docker版本信息
docker version
二、docker-compose
1)下载 docker-compose
sudo curl -L https://github.com/docker/compose/releases/download/1.19.0/docker-compose-uname -s
-uname -m
-o /usr/local/bin/docker-compose
2)设置权限
sudo chmod +x /usr/local/bin/docker-compose
3)测试是否安装成功
$ docker-compose --version
docker-compose version 1.19.0, build 1719ceb
以上是 docker 的全部内容, 来源链接: utcz.com/z/511147.html