docker镜像构建

1. Dockerfile文件内容



2. docker build 命令进行镜像构建。其格式为:

docker build [选项] <上下文路径/URL/->

3. Dockerfile上下文


4. 获取当前ip

[im@VM_0_2_centos ~/myip]$ curl -s http://ip.cn
当前 IP:192.144.168.119 来自:北京市 腾讯

5. 镜像保存




猜你喜欢

转载自blog.csdn.net/u014042372/article/details/80831490