-
Notifications
You must be signed in to change notification settings - Fork 0
sxc9870/MyDockerFile
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Q.容器PING不通 A.route add 容器IP mask 255.255.255.0 虚拟机IP docker run -itd --name mytomcat tomcat:8.5 docker build -t tomcat:8.5 . nexus chown -R 200 /data jenkins chown 1000 / data/jenkins/home/ docker rmi $(docker images -aq) -f && docker rm $(docker ps -aq) -f docker rmi $(docker images -f "dangling=true" -q) ENTRYPOINT ["/docker-entrypoint.sh"] for server in $ZOO_SERVERS; do 循环环境变量 打到config文件里面去 echo "$server" >> "$CONFIG" done .env的文件在不显示引用的情况下 只能替换docker-compose 中的${},并不会写入容器的环境变量, 如果使用了env_file标签,指定文件,则会导入环境变量 可以通过docker-compose config 来显示替换后的dc文件
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published