Docker config gone after update

Discussion about Docker
User avatar
bconnor218
Posts: 3
Joined: 17 Jul 2022, 22:29

Docker config gone after update

Post by bconnor218 »

I applied the recent Docker Manager app update yesterday and when I go into the app it's like it's a fully clean install. It sounds like the primary data directory changed? What's the easiest way for me to get back up and running?

I'm pretty new to using Docker so I'm not sure if there is a way to just copy over the config files or from where to where? Or if I can just re-import the images I had already configured. Appreciate any help you all may have!
User avatar
TMSupport
TerraMaster Team
Posts: 2314
Joined: 13 Dec 2019, 15:15

Re: Docker config gone after update

Post by TMSupport »

Please disable and enable Docker again in the app center.
To contact our team, please send email to following addresses, remember to replace (at) with @
Technical team: support(at)terra-master.com (for technical support)
Service team: service(at)terra-master.com (for purchasing, return, replacement, RMA service)
User avatar
bconnor218
Posts: 3
Joined: 17 Jul 2022, 22:29

Re: Docker config gone after update

Post by bconnor218 »

That was actually the first thing I tried. I've also found the original install location and tried copy/replacing the new files with those and that doesn't seem to have worked either. A full system restart also did not resolve the issue.
User avatar
Gandalf1369
Posts: 82
Joined: 26 Feb 2020, 01:34
United States of America

Re: Docker config gone after update

Post by Gandalf1369 »

@bconnor218

I don't have a solution for you but I can say that the exact same thing happened to my son. He has a F2-220 running TOS 5 and he updated his Docker Manager when the App Store told him there was an update. He also lost all of his containers and images and had to re-build everything from scratch.
F5-221 with 4x5TB drives in Raid 5 (Plex Media Server, TOS 4.2.40)
F4-220 with 2x8TB, 1x6TB in JBOD (Docker, PiHole, Uptime-Kuma, tnfsd-x64, TOS 5.1.123)
User avatar
TMSupport
TerraMaster Team
Posts: 2314
Joined: 13 Dec 2019, 15:15

Re: Docker config gone after update

Post by TMSupport »

After updating the app, do you see a pop-up window of "Configuration File Migration" when you open the app?
To contact our team, please send email to following addresses, remember to replace (at) with @
Technical team: support(at)terra-master.com (for technical support)
Service team: service(at)terra-master.com (for purchasing, return, replacement, RMA service)
User avatar
TMSupport
TerraMaster Team
Posts: 2314
Joined: 13 Dec 2019, 15:15

Re: Docker config gone after update

Post by TMSupport »

You can restore the previous container by doing the following:
1. Disable the docker application.
2. Go to the file manager and copy all the folders in /homes/docker/DockerData to the new shared folder /DockerData.
3. Enable the docker application.
To contact our team, please send email to following addresses, remember to replace (at) with @
Technical team: support(at)terra-master.com (for technical support)
Service team: service(at)terra-master.com (for purchasing, return, replacement, RMA service)
User avatar
XFNeo
Posts: 90
Joined: 10 Oct 2022, 23:18

Re: Docker config gone after update

Post by XFNeo »

{L_BUTTON_AT}TMSupport
I have the same problem. Sometimes after reboot docker images, networks, containers are gone. Like docker just installed. I have find out that on such boot some mounts are dissapired. The boot without docker settings\entities:

Code: Select all

#mount
/dev/md9 on / type ext4 (rw,noatime,nodiratime,commit=60,data=writeback)
devtmpfs on /dev type devtmpfs (rw,relatime,size=1920556k,nr_inodes=480139,mode=755)
proc on /proc type proc (rw,relatime)
devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620,ptmxmode=666)
tmpfs on /dev/shm type tmpfs (rw,relatime,mode=777)
tmpfs on /tmp type tmpfs (rw,relatime)
tmpfs on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
sysfs on /sys type sysfs (rw,relatime)
tmpfs on /opt/var type tmpfs (rw,relatime)
/dev/mapper/vg0-lv0 on /Volume1 type btrfs (rw,relatime,nodatasum,nodatacow,nobarrier,space_cache=v2,autodefrag,subvolid=5,subvol=/)
/dev/mapper/vg0-lv0 on /home type btrfs (rw,relatime,nodatasum,nodatacow,nobarrier,space_cache=v2,autodefrag,subvolid=259,subvol=/User)
cgroup on /sys/fs/cgroup type tmpfs (rw,relatime,mode=755)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,relatime,cpuset)
cgroup on /sys/fs/cgroup/cpu type cgroup (rw,relatime,cpu)
cgroup on /sys/fs/cgroup/cpuacct type cgroup (rw,relatime,cpuacct)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,relatime,blkio)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,relatime,memory)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,relatime,devices)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,relatime,freezer)
cgroup on /sys/fs/cgroup/net_cls type cgroup (rw,relatime,net_cls)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,relatime,perf_event)
cgroup on /sys/fs/cgroup/net_prio type cgroup (rw,relatime,net_prio)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,relatime,pids)
cgroup on /sys/fs/cgroup/rdma type cgroup (rw,relatime,rdma)
On a boot with docker settings\entities, additional mounts are present:

Code: Select all

/dev/mapper/vg0-lv0 on /Volume1/DockerData/btrfs type btrfs (rw,relatime,nodatasum,nodatacow,nobarrier,space_cache=v2,autodefrag,subvolid=2299,subvol=/DockerData)
shm on /Volume1/DockerData/containers/e2ebf0a6ac4ebc180e66c7242bdb7a6d1f29f8eb7dfc66798eab9a03d35a687a/mounts/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,size=65536k)
shm on /Volume1/DockerData/containers/cfd44d7f6334b5f5ddb43c38713d8e913873afa316f088ec24693c13552dbc96/mounts/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,size=65536k)
nsfs on /run/docker/netns/e31ded2509f4 type nsfs (rw)
nsfs on /run/docker/netns/5f2397a94415 type nsfs (rw)
shm on /Volume1/DockerData/containers/4a5f3f48339acf40c27e148a7875b92f8674066056ee40100abbac23d29d207b/mounts/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,size=65536k)
nsfs on /run/docker/netns/b6f2d034e81e type nsfs (rw)
User avatar
XFNeo
Posts: 90
Joined: 10 Oct 2022, 23:18

Re: Docker config gone after update

Post by XFNeo »

If I reboot my TNAS it is loading without this mount looks like always.
BUT if i do service docker restart and reboot TNAS on next boot mounts are present.
User avatar
TMSupport
TerraMaster Team
Posts: 2314
Joined: 13 Dec 2019, 15:15

Re: Docker config gone after update

Post by TMSupport »

{L_BUTTON_AT}XFNeo

This issue is being fixed.
To contact our team, please send email to following addresses, remember to replace (at) with @
Technical team: support(at)terra-master.com (for technical support)
Service team: service(at)terra-master.com (for purchasing, return, replacement, RMA service)
User avatar
XFNeo
Posts: 90
Joined: 10 Oct 2022, 23:18

Re: Docker config gone after update

Post by XFNeo »

{L_BUTTON_AT}XFNeo
TMSupport wrote: 04 Nov 2022, 17:14 This issue is being fixed.
Hi! When it will be fixed?
Locked