简体   繁体   中英

docker-compose: Modify environment variable

Given a docker-compose.yml file in version "2" and a running container. How to pass a modified environment variable specified in the .yml-file to the running container. Which docker-compose command needs to taken without rebuilding the image?

您可以再次运行docker-compose up命令。

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