Docker安装与镜像构建全攻略
1. Docker安装
1.1 验证安装
可以使用Docker的hello-world示例来验证Docker是否成功安装:
[root@osboxes ~]# docker run hello-world
输出示例如下:
Unable to find image 'hello-world:last' locally
latest: Pulling from library/hello-world
03f4658f8b78: Pull complete
a3ed95caeb02: Pull complete
Digest:
sha256:8be990ef2aeb16dbcb9271ddfe2610fa6658d13f6dfb8bc72074cc1ca36966a7
Status: Downloaded newer image for hello-world:latest
Hello from Docker.
This message shows that your installation appears to be working correctly.
To generate this message, Docker took the following steps:
The Docker client contacted the Docker daemon.
1.
The Docker daemon pulled the hello-world image f