docker installation
- 安装之前你必须是root用户,否则是无法安装的,执行命令安装
# yum install docker
- 查看安装的docker版本
[docker@localhost ~]$ docker -v
Docker version 1.12.6, build 85d7426/1.12.6
- start docker, maybe password is needed
[docker@localhost ~]$ service docker start
Redirecting to /bin/systemctl start docker.service
- run docker "hello-world" to see if it will work
[docker@localhost ~]$ docker run hello-world
Hello from Docker!
This message shows that your installation appears to be working correctly.
- 查看当前docker信息
$ docker info
网友评论