I created a DaemonSet to update
/etc/docker/daemon.json to include an insecure registry there. The purpose of this registry is to push images to it from within the cluster and create pods from these images (again in the same cluster).
The DaemonSet works as expected and the
daemon.json file is in the right place with the correct values. The problem is that I cannot restart the docker daemon by calling
systemctl restart docker (got some D bus error) or
service docker restart (got service command not found error).
Is this a sound approach that could work? How can I restart the k8s docker daemon?
I did my testing on GKE.