标签:开机 systemctl 退出 根据 ble ubunt 启动 spec linu
1.更新:yum check-update
2.安装:yum install docker
3.按y确认
4.启动:systemctl start docker
5.开机自启动:systemctl enable docker
6.查看版本:docker version
7.使用ubuntu镜像输出:docker run ubuntu echo ‘hello world‘
8.进入docker目录:docker run -i -t ubuntu /bin/bash
9.退出:exit
10.查看运行的容器:docker ps -a
11.根据id查看容器的数据:docker inspect 38809647cd30
12.创建容器名:docker run --name=somename -i -t ubuntu /bin/bash
标签:开机 systemctl 退出 根据 ble ubunt 启动 spec linu
原文地址:https://www.cnblogs.com/shanshen/p/8822793.html