V
V
vantic1312017-03-16 21:28:35
Computer networks
vantic131, 2017-03-16 21:28:35

How to pull files from docker?

The essence of the problem: you need to transfer the site from the old server to the new hosting, as far as I could understand the site itself was launched in this very dockere, rummaged through a bunch of sites and did not find how to pull the files themselves out of this "virtual" machine.
I would be grateful for any options and hints, since the site files are no longer available, I read how to transfer the docker machine itself to another server, but this is a bad option because the same problems will follow, how to update the site if no one knows how to work with it. There is root ssh access to the server in terms of accessibility of actions.
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
vader666, 2017-03-16
@vantic131

View a list of running containers:
Connecting to a container:
Looks at the directory structure, finds where the project is located and remembers its path. Exit the container
Copy the data from the container:

docker cp <container_name>:<пусть к проекту> <путь куда копируем на текущем сервере>

M
Maxim Kudryavtsev, 2017-03-16
@kumaxim

Option #1
Do you have access to the host machine? If so, then run docker cp
Are you connecting inside the virtual machine via SSH? What in that case hinders to copy files from there on scp ?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question