Newbie Question, Copying Container file (forget to mount volume)

Currently reading
Newbie Question, Copying Container file (forget to mount volume)

2
0
Operating system
  1. Windows
Mobile operating system
  1. Android
Hello Everyone, please help im new on docker and synology.

4 months ago i install SNIPEIT through this tutor on youtube :
Code:
https://www.youtube.com/watch?v=yuIieuxSmpw&t=380s
and i just realize i didnt mount volume into my /docker (usually people doing like /docker/snipeit)

volume path.png


how to make it right..
 
Stop the container, use the Edit button, configure the mount, and start the container back up
will it copy the container file to /docker or flush the config, cause ive done trying it using papermerge, the config i've done is gone after mounting it.
 
Upvote 0
Oh boy, thanks to a mouse-shortcut of my browser, I just lost a detailed answer to the question.

Good news: the data is still present in an anoymous volume.

If you are lucky, the anonymous volume is still configured in the metadata, which you can find like this:
Code:
sudo docker ps -a
sudo docker inspect {container id or name from previous command} --format '{{ range .Mounts}}{{.Source}}{{end}}'

If it's there, just stop the container and copy the data from the folder you got from docker inspect to your target folder (with sudo) , then use the target folder as volume.

If it's not there, you can find all volume data folders with: sudo docker info --format '{{.DockerRootDir}}'/volumes
 
Upvote 0
will it copy the container file to /docker or flush the config, cause ive done trying it using papermerge, the config i've done is gone after mounting it.
Well I have been busy today so didn't have time to answer sooner, but @one-eyed-king said it all. So in short if you mount now, you will not get all the data. Copy it, make the mount and move the data to that location.
 
Upvote 0

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Similar threads

One note to the approach: copying the files from inside the container might cause inconsitent copies if...
Replies
20
Views
4,739
  • Question
Those are questions that might be better aimed at people that actualy use pipes.digital. I realy just took...
Replies
9
Views
2,410
  • Solved
Brilliant, thanks again (y) 1638624696 It's working fine now, thanks very much for your help (y)
Replies
4
Views
3,173
I never containerized any php application myself, as my job usualy requires java based images (lately all...
Replies
8
Views
2,224
OK... That seemed to work when I changed the group from user to administrators (while using an...
Replies
6
Views
10,524

Welcome to SynoForum.com!

SynoForum.com is an unofficial Synology forum for NAS owners and enthusiasts.

Registration is free, easy and fast!

Trending threads

Back
Top