Install the app
How to install the app on iOS

Follow along with the video below to see how to install our site as a web app on your home screen.

Note: This feature may not be available in some browsers.

Looking to activate ipv6 on docker for synology

As an Amazon Associate, we may earn commissions from qualifying purchases. Learn more...

5
1
NAS
ds423+
Operating system
  1. Windows
Mobile operating system
  1. Android
Hello
:hugs:
,
I’m looking for some help about “docker container manager” on my NAS synology.
I was able to install Home Assistant with docker.

I am trying to add the new “home assistant matter hub” that works with ipv6 only.
I tried with my HOST but it says ipv6 “disable”. So I tried to make a new network :

image
image1920×936 93.6 KB


Here you can see that there is some parameters to manually activate ipv6.
But after putting all the right settings in it, still ipv6 is set to “disable”. should I restart docker ?
Do I need to connect through SSH in order to change some stuff to allow ipv6 on HOST ?
:thinking:
 
Solution
Hi guys, I Just saw your messages. So for me I was able to make matter hub work on host and now I also use watchtower to auto update matter hub. Because matter hub is new, there is a lot of changes regularly and it would be a pain to do it by hand.

Here is a tutorial for the activation of ipv6 on docker manager ! For more info on how to set up your docker container please refer to the github page of home assistant matter hub.

Process to activate ipv6 on host ( many thanks to @Rusty ) :
  • first create two folders on your computer. ( one will be named "etc" and the other "config").
  • in each of them, create a file named exactly the same "dockerd.json" ( use visual studio code for exemple)
  • go to the website ...
Command line will be the way to do it. Give it a go.

 
Upvote 0
thanks Rusty ! 👍
I am going through the tutorial and I have two small questions :

- when I log in ssh I can't seem to find "/etc/docker/daemon.json" : --> "No such file or directory"
I only have a file inside called key.json
So do I need to create a daemon.json file and transfert it inside ?

-
Code:
{ "base": "2001:db8::/104", "size": 112 }
2001:db8::/104 should not be used as a real subnet, it’s for documentation purposes only.... replace the first two address blocks with those generated by the site."
In this section, I need to go to a website in order to get a private ipv6 randomly generated.
The adresse that I got is longer than just two address blocks. exemple : XXXX:1234:x2x2:9876::/64

So should I write
Code:
{ "base": "XXXX:1234::/104", "size": 112 }
?
 
Upvote 0
I haven't looked or wrote the article so I will not comment on it.

In terms of the json file and activating this on a Syno NAS, you will need to do 2 changes on 2 separate locations.

Code:
dockerd.json file in /var/packages/ContainerManager/etc/:

"data-root" : "/var/packages/ContainerManager/target/docker",
"log-driver" : "db",
"registry-mirrors" : [],
"storage-driver" : "btrfs",
"ipv6": true,
"fixed-cidr-v6": "2001:db8:1::/64"

dockerd.json file in /volume1/@appstore/ContainerManager/config/:

"registry-mirrors": [],
"data-root": "/var/packages/ContainerManager/target/docker",
"log-driver": "db",
"ipv6": true,
"fixed-cidr-v6": "2001:db8:1::/64"

Add

Code:
"ipv6": true,
"fixed-cidr-v6": "2001:db8:1::/64"

Replace the CIDR values with one that fits your needs by using a generator (one generator can be found here: IPv6 Local Address Range Generator)

Stop and start the Container Manager after that.
 
Upvote 0
thank you very much. it worked !! :LOL:(y)
I just had to change : /var/packages/Docker/etc/
with var/packages/ContainerManager/etc/
and /volume1/@appstore/ContainerManager/config/
ContainerManager is the new name.
Weirdly it still shows ipv6 : disable. But everything works fine so I think it's not a problem.
 
Upvote 0
Hi Momodaron,

I’m trying to add Tado X devices to Home Assistant but haven’t had any luck so far. I’ve narrowed the issue down to IPv6 and the Matter server running in Docker.

Could you please share more details about how you configured the entire system?

Are you using the host network for the Matter server container?
 
Upvote 0
I used that yesterday, but as you mentioned, it seems to only enable IPv6 for the bridge network mode.
 
Upvote 0
Nevermind, solved my issue by running the python matter server inside my Raspberry Pi instead of Synology Docker.
 
Upvote 0
Last edited:
Hi guys, I Just saw your messages. So for me I was able to make matter hub work on host and now I also use watchtower to auto update matter hub. Because matter hub is new, there is a lot of changes regularly and it would be a pain to do it by hand.

Here is a tutorial for the activation of ipv6 on docker manager ! For more info on how to set up your docker container please refer to the github page of home assistant matter hub.

Process to activate ipv6 on host ( many thanks to @Rusty ) :
  • first create two folders on your computer. ( one will be named "etc" and the other "config").
  • in each of them, create a file named exactly the same "dockerd.json" ( use visual studio code for exemple)
  • go to the website : IPv6 Local Address Range Generator and generate a random CIDR. Note that down.

- inside the "dockerd.json" witch is located in the folder named "etc" write this code :
Code:
{"data-root":"/var/packages/ContainerManager/var/docker","fixed-cidr-v6":"XXXXX::/64","log-driver":"db","registry-mirrors":[],"storage-driver":"btrfs"}
but change the "fixed-cidr-v6" with the cidr that you note down from the website !!

- inside the "dockerd.json" witch is located in the folder named "config" write this code :
Code:
{
    "registry-mirrors": [],
    "data-root": "/var/packages/ContainerManager/var/docker",
    "log-driver": "db",
    "ipv6": true,
    "fixed-cidr-v6": "XXXX::/64"
}
Change the "fixed-cidr-v6" again !!

-- Good, your are ready to transfer to your nas :
  • log-in to your nas (dsm)
  • go to file station and copy paste your windows folders (etc and config) in one of your folders in file station, for exemple "01.MyFiles". (like this, it is simpler for the next part because you will be able to simply use "cp" in terminal in order to put your dockerd.json files to the right locations".)
  • Now activate ssh in your terminal settings
  • on your PC, use a software like "putty" to login in ssh (use the ip adress of your nas + port 22)
  • use your admin credentials (for exemple "cedricdigoryadmin" and your password : "harrypotter")
  • in the terminal write :
Code:
sudo cp /volume1/01.MyFiles/config/dockerd.json /volume1/@appstore/ContainerManager/config/
(don't forget to change the "01.MyFiles" with the name of YOUR file)

and again in terminal write :
Code:
sudo cp /volume1/01.MyFiles/etc/dockerd.json /var/packages/ContainerManager/etc/dockerd.json
(don't forget to change the "01.MyFiles" with the name of YOUR file)

  • restart docker container in dsm
  • disable ssh (for security reason)

And you are good to go ;)

please note :
  • "ipv6": true --> it will still appear as ipv6 : disable in docker manager network (but it works so it's ok)
  • restarting your docker manager will break the token for matter hub in home assistant so you will have to create an other brand new token. just simply create a token in home assistant named " home assistant matter hub" for exemple, and then copy and paste the token in the settings of your docker container.
  • I will not write here how to setup watchtower for auto updates because they are a lot of tutorials already about it
 
Upvote 0
Solution

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

A simple enough task, but I’m missing something somewhere. I’m new to ipv6, so do please state the...
Replies
0
Views
235
My Synology version is DSM 6.2.3, and My home network does not have public IPv4, only public IPv6. I use...
Replies
0
Views
706

Thread Tags

Welcome to SynoForum.com!

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

Registration is free, easy and fast!

Trending content in this forum

Back
Top