B
B
by_EL2021-12-21 09:28:25
linux
by_EL, 2021-12-21 09:28:25

How can I organize volume forwarding on a running docker container?

How can I do volume mapping on a running docker container? Or temporarily stop, do it again without lifting the container, only correcting the running container?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Vasily Bannikov, 2021-12-21
@vabka

It seems impossible to change the volumes to hot ones.
Alternatively, start a new container from the same image with the new mapping and stop the old one.

R
rPman, 2021-12-21
@rPman

in theory, this is possible by manually mounting a new mount into the directory, bypassing the docker itself, but there is no point in this, since this will not work, old open files will give errors, and the current directory in the old location will not correctly list the files in it ( even if there is a match in the names of the directories), i.e. errors will fly out.

V
Valentine, 2021-12-30
@ProFfeSsoRr

Such schemes contradict the idea of ​​containers, their essence is to restart, just a little. Therefore, there are no such possibilities.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question