docker镜像
1. java 镜像
使用java瘦身slim镜像 https://hub.docker.com/_/openjdk/tags?page=1&name=8u312-slim
2,新建测试容器
https://blog.csdn.net/qq_48391148/article/details/126682724
3, 新建测试centos的Dockefile
cat Dockerfile_bak_01 FROM centos7:v2 ENV NGINX_VERSION 1.23.1 ENV AUTHOR wangsh LABEL maintainer="wangsh<1486624726@qq.com>" ARG sg WORKDIR /sc COPY . /sc RUN yum install vim iputils net-tools iproute -y \ && bash /sc/install_nginx.sh EXPOSE 80 ENV PATH=/usr/local/nginx1/sbin:$PATH volume /scvol CMD ["nginx","-g","daemon off;"]
4, 新建的瘦身java项目的Dockefile
FROM centos7:v2 ADD eladmin-system-2.7.jar /root/ ADD jdk-8u371-linux-x64.tar.gz /usr/lib EXPOSE 8000 ENTRYPOINT ["/usr/lib/jdk1.8.0_371/bin/java","-jar","/root/eladmin-system-2.7.jar"]
5,docker 0网卡
https://www.cnblogs.com/all-smile/p/16633820.html