docker run -itd --name jf --restart=always --privileged=true -p 8080:8080 -v /home/yida/apps/jf/logs-8076:/usr/local/tomcat/logs -e MYSQL_SERVICE_HOST=10.143.133.118 -e MYSQL_SERVICE_PORT=3306 -e MYSQL_SERVICE_USER=root -e MYSQL_SERVICE_PASSWORD=5mLzHsyIVmxc -e REDIS_SERVICE_HOST=10.143.133.192 -e REDIS_SERVICE_PORT=6379 jftomcat:latest
标签:logs,SERVICE,--,PORT,设置,MYSQL,docker,环境变量 From: https://www.cnblogs.com/Lqdream/p/17645614.html