随笔分类 -  Docker

摘要:安装docker # cd /etc/yum.repos.d/ # wget https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo # yum -y install docker-ce 启动docker服务 # system 阅读全文
posted @ 2020-09-23 13:14 Edward_han 阅读(363) 评论(0) 推荐(0)
摘要:# cd /opt/dockerfile/web/ # ls apache jdk nginx tomcat # mkdir haproxy # cd haproxy/ 添加配置文件haproxy.cfg 修改配置文件haproxy.cfg # vim haproxy.cfg global maxc 阅读全文
posted @ 2020-09-23 12:22 Edward_han 阅读(345) 评论(0) 推荐(0)
摘要:创建dockerfile目录 # mkdir /opt/dockerfile/{web/{nginx,tomcat,jdk,apache},system/{centos,ubuntu,redhat}} -pv 强制删除tag为<none>的镜像 # docker rmi -f `docker ima 阅读全文
posted @ 2020-09-23 12:20 Edward_han 阅读(340) 评论(0) 推荐(0)
摘要:安装Nginx # vim Dockerfile FROM centos MAINTAINER Edward RUN yum install epel-release -y && yum install nginx -y #USER nginx #ENV MYSQL_HOST 192.168.50. 阅读全文
posted @ 2020-09-23 12:06 Edward_han 阅读(472) 评论(0) 推荐(0)