If I have a docker container that I started a while back, what is the best way to set an environment variable in that running container? I set an environment variable initia
You could set an environment variable to a running Docker container by
docker exec -it -e "your environment Key"="your new value"
Verify it using below command
printenv
This will update your key with the new value provided.
Note: This will get reverted back to old on if docker gets restarted.