摘要: 构建一个镜像 [root@ol85 ~]# mkdir dockerfile[root@ol85 ~]# cd dockerfile/ FROM centos:7RUN yum install epel-release -y && \ yum install nginx -y CMD ["nginx 阅读全文
posted @ 2022-05-09 20:03 老王的农场 阅读(35) 评论(0) 推荐(0)
摘要: [root@ol85 ~]# ip addr [root@ol85 ~]# docker run -itd busybox docker使用iptables实现网络通信 [root@ol85 ~]# ss -antp |grep 88 外部访问容器 [root@ol85 ~]# iptables - 阅读全文
posted @ 2022-05-09 17:56 老王的农场 阅读(48) 评论(0) 推荐(0)
摘要: [root@ol85 ~]# docker exec -it web bashroot@web:/# cd /usr/share/nginx/html/root@web:/usr/share/nginx/html# root@web:/usr/share/nginx/html# echo "<h1> 阅读全文
posted @ 2022-05-09 16:40 老王的农场 阅读(105) 评论(0) 推荐(0)