Question Docker migration to new NAS

Currently reading
Question Docker migration to new NAS

Hi, as promised my experience with migration to a new NAS.
It was easier as i've expected and without SSH.
My approach(old DS218+, new DS718+):
1. installed docker on 718
2. installed all my containers (actually only downloaded then from repo) on 718.
3. copied the whole folder /volume1/docker to 718
4.export settings for all containers from 218.
5.import settings on 718.
6. run containers.
I've moved Docker with all my container (bitwardenrs server, homebridge,deconz,
phihole, transmissio) without any issue.
Only portainer didn't work.
Code:
Failure
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
i don't know why he can't find docker.socket and how to fix it. Maybe a new installation will help.

Thank again for everyone. I hope it will help other users.
regards
 
Hi, as promised my experience with migration to a new NAS.
It was easier as i've expected and without SSH.
My approach(old DS218+, new DS718+):
1. installed docker on 718
2. installed all my containers (actually only downloaded then from repo) on 718.
3. copied the whole folder /volume1/docker to 718
4.export settings for all containers from 218.
5.import settings on 718.
6. run containers.
I've moved Docker with all my container (bitwardenrs server, homebridge,deconz,
phihole, transmissio) without any issue.
Only portainer didn't work.
Code:
So you didn't move from ext4 to btrfs... that made things way easier.
Configuration and data inside the containers are still there?
 
Last edited:
Did you check docker info | grep Storage (as root) to see which one is used.



Code:
docker info | grep Storage
Storage Driver: btrfs
WARNING: No kernel memory limit support
WARNING: No cpu cfs quota support
WARNING: No cpu cfs period support

Code:
# docker info
Containers: 13
 Running: 12
 Paused: 0
 Stopped: 1
Images: 6
Server Version: 18.09.6
Storage Driver: btrfs
Logging Driver: db
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge host macvlan null overlay
 Log: awslogs db fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 0cf16177dbb234350dc27dd2bbd1d7cebd098108
runc version: 6cc9d3f2cd512eeb3d548e2f6b75bcdebc779d4d
init version: e01de58 (expected: fec3683)
Security Options:
 apparmor
Kernel Version: 4.4.59+
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 9.577GiB
Name: HOME-NAS
ID: VJUX:B7MQ:MFGI:KPNU:TJVI:JMK6:LLX6:F2GU:V3NZ:FSEJ:5JAW:7EA7
Docker Root Dir: /volume1/@docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
 127.0.0.0/8
Live Restore Enabled: false

WARNING: No kernel memory limit support
WARNING: No cpu cfs quota support
WARNING: No cpu cfs period support
i really didn't do anything else but only the steps described. I'm not very good in SSH.
i'm really happy that its worked out and all my smart home is still running.
 
Thank's for sharing.

In germany we have a saying: "everyone said: it's impossible. Then someone came along who didn't knew that (it's impossible) and just did it".

Knowing you migrated from aufs to btrfs and everything continues to work either means you re-created everything with the other actions in your migration OR Docker (or Syno) actualy implemented a migration when the storage driver is changed.

I can finally find peace with "it's magic".
 
Hi, slightly different situation, I am considering retiring my DS713+ and moving to a new DS720+. Since the two drives are in good shape, I am thinking about just moving them to the 720. Since my main usage of the NAS is through Docker containers, I am wondering whether they will work "out of the box" after moving to the new NAS? Or must I go through some of the steps discussed in this thread to export/import them?
 
Hi, slightly different situation, I am considering retiring my DS713+ and moving to a new DS720+. Since the two drives are in good shape, I am thinking about just moving them to the 720. Since my main usage of the NAS is through Docker containers, I am wondering whether they will work "out of the box" after moving to the new NAS? Or must I go through some of the steps discussed in this thread to export/import them?
would be good to have some backup of the whole setup, but 99% all will be running just fine out of the box. I have done many of those migrations and there shouldn't be any problems at all.
 

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

I can’t find any option to restore just the settings. 1710356648 Phew, managed to fix it. Within the...
Replies
4
Views
389
Good to hear. Deluge has not been updated for almost two years now as an app, nevertheless. But it gives...
Replies
12
Views
958
  • Question
Open an issue on that GitHub page. The developers will be glad to assist. OP has posted two threads on...
Replies
5
Views
959
I'm happy with email notifications but in v0.3.3 of dockcheck the author added apprise notifications...
Replies
4
Views
1,040
I am also trying to setup a Z-wave USB dongle and am getting stuck after following the same steps as...
Replies
1
Views
1,029
How did you create the Portainer container in first place? As in exact docker run commands or in case...
Replies
7
Views
1,235
Looks like I triggered you somehow with my post: it was not my intention. I have no idea whether bash or...
Replies
4
Views
1,532

Welcome to SynoForum.com!

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

Registration is free, easy and fast!

Back
Top