Answer the question
In order to leave comments, you need to log in
Is it possible to pass environment variables to an already created Docker container?
Do I understand correctly that environment variables cannot be transferred to a container already created on the basis of an image? I can't find the corresponding parameters in the docker start command. Unlike docker run, which, if I'm not mistaken, always creates a new container.
Answer the question
In order to leave comments, you need to log in
as an option - connect to the working container via docker exec additionally specifying the export command with the necessary variable.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question