How to set an environment variable on an existing docker container.

From link.

Stop the Docker daemon and change the container config in:

/var/lib/docker/containers/[container-id]/config.json

You can find the container-id by executing:

docker inspect [container-name]

Leave a Reply

Your email address will not be published. Required fields are marked *