How to edit the /etc/docker/daemon.json

June 2025 in fangtooth 25.04.1
when i edit the daemon.json file and restart the truenas, the daemon.json file will be restored everytime,i want add a Docker Hub mirrors:

{
  "registry-mirrors": ["https://docker.example.mirror.io"]
}

like this, i don’t know how to solve it.

As I replied in the other thread you posted this in:

You will have to write that post-init script yourself.