容器内部环境变量生效,外部不生效
点击
docker-compose.yml设置环境变量
environment:
- JAVA_HOME=/opt/jdk1.8.0_381
- PATH=/opt/jdk1.8.0_381/bin
- CLASSPATH=/opt/jdk1.8.0_381/lib/
容器内部环境变量生效,外部不生效
点击
docker-compose.yml设置环境变量
environment:
- JAVA_HOME=/opt/jdk1.8.0_381
- PATH=/opt/jdk1.8.0_381/bin
- CLASSPATH=/opt/jdk1.8.0_381/lib/