摘要: 进入容器测试ifconfig ping 没有 >>很尴尬 apt-get install net-tools ### ifconfig apt-get install iputils-ping ### ping apt-get install iproute2 #### ip linux 安装ip 阅读全文
posted @ 2017-07-20 10:13 超我 阅读(38598) 评论(0) 推荐(4) 编辑
摘要: 1.提交运行中的容器为一个镜像 (这样不会丢失在容器的各种操作) docker commit tang tang1 ### tang(运行容器名称) tang1(生成镜像名称) 2.运行镜像并添加端口 docker run -d -it -p 8000:80 tang1:latest /bin/ba 阅读全文
posted @ 2017-07-20 00:24 超我 阅读(6437) 评论(0) 推荐(0) 编辑