2020年6月1日

通过docker history查看镜像构建过程(即dockerfile)

摘要: 介绍: ~]# docker history --help Usage: docker history [OPTIONS] IMAGE Show the history of an image Options: --format string Pretty-print images using a 阅读全文

posted @ 2020-06-01 16:46 ExplorerMan 阅读(1323) 评论(0) 推荐(1)

docker -v 和Dockerfile 中VOLUME 区别

摘要: Dockerfile中 VOLUME ["/data/nginx","/usr/share/nginx"] docker run -v /data/nginx:/usr/share/nginx 如果只是读文件 两者都可以 如果是想把文件写出 两个也都可以 但是有区别 volume 默认会写到 /va 阅读全文

posted @ 2020-06-01 16:41 ExplorerMan 阅读(725) 评论(0) 推荐(0)

导航