简体   繁体   中英

Can I change the enviroment setting without re building the docker image?

So as I sit and develop my Rails application and I move more settings into the environment section of my docker compose file. I then shut down all containers and rebuild the image. Seems like a lot of work.

Can it be updated without rebuilding the image?

Just change your env variables in your docker-compose file. And docker-compose up -d will updates your variables without rebuild images. Rebuild images is necessary if you change your dockerfile.

Check this How to reload environment variables in docker-compose container with minimum downtime?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM