A
A
Alexander Bondarenko2022-01-27 12:56:43
Docker
Alexander Bondarenko, 2022-01-27 12:56:43

How to copy data from one volume to another?

Hello everyone, please tell me how can I copy data from volume1 to volume2?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Michael, 2022-01-27
@Akela_wolf

  1. Write a Dockerfile in which the cp command will be available (or take any suitable one)
  2. Run, mount both volumes into it
  3. docker exec -it cp -R

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question