How Docker has been running on container modification when run env

https://www.cnblogs.com/xiaouisme/p/9837221.html

First, this is not recommended, To modify the configuration, should be deleted redeployment.

Next, the following operations may be performed (not tested, only to restart do not know whether container can achieve the same effect):

1. service docker stop,

2. Modify /var/lib/docker/containers/[container-id]/config.json in the corresponding environment variable

3. Then service docker start.

4. View performance: docker exec -it [container-id] env

Then, you may also be used docker-gen container similar tool for configuration management of a docker

Guess you like

Origin www.cnblogs.com/xwgli/p/11001695.html