Docker安装与镜像构建指南
1. Docker安装
在安装Docker之后,我们可以通过运行Docker的hello - world示例来验证其是否安装成功:
[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.
若想尝试更复杂的操作,可以使用以下命令运行一个Ubuntu容器:
$ docker run -it ubuntu bash
超级会员免费看
订阅专栏 解锁全文
1300

被折叠的 条评论
为什么被折叠?



