摘要:
构建一个镜像 [root@ol85 ~]# mkdir dockerfile[root@ol85 ~]# cd dockerfile/ FROM centos:7RUN yum install epel-release -y && \ yum install nginx -y CMD ["nginx 阅读全文
摘要:
[root@ol85 ~]# ip addr [root@ol85 ~]# docker run -itd busybox docker使用iptables实现网络通信 [root@ol85 ~]# ss -antp |grep 88 外部访问容器 [root@ol85 ~]# iptables - 阅读全文
摘要:
[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> 阅读全文