You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One can pass environment vars into new containers when building them with "docker run":
docker run -e "FOO=bar" ...
But how can one do that for an existing container, there is no -e option for docker run.
I wish to be able to restart a container with a new environment setting, but do not wish to actually recreate the container (as it has lots of manual changes in there).
One option might be to commit the container to an image and create a new container based on that image. Seems a very roundabout way though.
have I missed something?
andreas-ateles, arindamchoudhury, dmjio, Broham, woto and 99 more