摘要: docker网络是如何和宿主机相通的 先用docker命令查看下我们的docker网络 docker network list 可以看到网络列表 NETWORK ID NAME DRIVER SCOPE bd45b573efca bridge bridge local dffe767ef55b co 阅读全文
posted @ 2020-11-30 17:10 恋恋风辰 阅读(95) 评论(0) 推荐(0) 编辑
摘要: 构建两个busybox容器 构建两个busybox容器 docker run -d --name test1 busybox /bin/sh -c "while true; do sleep 3000; done" docker run -d --name test2 busybox /bin/sh 阅读全文
posted @ 2020-11-30 16:46 恋恋风辰 阅读(96) 评论(0) 推荐(0) 编辑
摘要: 构建flask镜像 先实现一个flask的python程序app.py from flask import Flask app = Flask(__name__) @app.route('/') def index(): return 'Hello World' if __name__ == '__ 阅读全文
posted @ 2020-11-30 15:11 恋恋风辰 阅读(207) 评论(0) 推荐(0) 编辑
摘要: images发布到docker hub 首先登录https://hub.docker.com注册自己的账号,然后创建仓库接着将我们之前的一个镜像打tag,tag的形式为id/镜像名:版本, id就是dockerhub的id。 #登录 docker login #给镜像打标签 docker tag s 阅读全文
posted @ 2020-11-30 15:00 恋恋风辰 阅读(132) 评论(0) 推荐(0) 编辑