Hello sir,
I would like to set a cluster with PiServer and using a Docker.
I install on the server and on the chroot using "curl -sSL https://get.docker.com | sh"
On the server I write "sudo usermod -aG docker pi", then "sudo docker swarm init".
But, when I must join the manager with the client, it says "Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running". I went to /var/run/ and I've seen there weren't Docker's files.
I write "sudo systemctl status docker.service", on the server it says that the service is active but on the client, that says inactive (dead).
So I tried in the chroot "sudo systemctl enable docker.service", it doesn't work.
But, in the chroot_image I put "sudo dockerd" and it says "Error starting daemon: Devices cgroup isn't mounted".
Then, I tried to solve that problem by adding "cgroup_enable=cpuset cgroup_enable=memory cgroup_memory=1" in /boot/cmdline.txt via chroot. It doesn't work either.
Would you have any idea ?
Thanks in advance.
Florian
Hello sir, I would like to set a cluster with PiServer and using a Docker. I install on the server and on the chroot using "curl -sSL https://get.docker.com | sh" On the server I write "sudo usermod -aG docker pi", then "sudo docker swarm init". But, when I must join the manager with the client, it says "Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running". I went to /var/run/ and I've seen there weren't Docker's files. I write "sudo systemctl status docker.service", on the server it says that the service is active but on the client, that says inactive (dead).
So I tried in the chroot "sudo systemctl enable docker.service", it doesn't work. But, in the chroot_image I put "sudo dockerd" and it says "Error starting daemon: Devices cgroup isn't mounted".
Then, I tried to solve that problem by adding "cgroup_enable=cpuset cgroup_enable=memory cgroup_memory=1" in /boot/cmdline.txt via chroot. It doesn't work either.
Would you have any idea ? Thanks in advance. Florian