Created
August 30, 2017 18:25
-
-
Save jebeaudet/b05c8b096e3fc28170e06fa1f5dbf60a to your computer and use it in GitHub Desktop.
Change docker environment variables on an existing container
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
stop docker service (`sudo service docker stop`) | |
edit the file located at `/var/lib/docker/containers/:containerId/config.v2.json` | |
restart docker service | |
profit! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment