Skip to content

Instantly share code, notes, and snippets.

@jebeaudet
Created August 30, 2017 18:25
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save jebeaudet/b05c8b096e3fc28170e06fa1f5dbf60a to your computer and use it in GitHub Desktop.
Change docker environment variables on an existing container
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