R
R
romaro2022-01-12 19:04:01
Docker
romaro, 2022-01-12 19:04:01

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

1 answer(s)
�
âš¡ Kotobotov âš¡, 2022-01-13
@angrySCV

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 question

Ask a Question

731 491 924 answers to any question