raspberrypi / piserver

Raspberry Pi Server wizard to serve Raspbian to network booting Pis
310 stars 60 forks source link

Docker on a diskless Pi3 #66

Closed Rubique closed 5 years ago

Rubique commented 5 years ago

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).

systemctl_status_docker service

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".

dockerd

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.

boot_cmdline txt

Would you have any idea ? Thanks in advance. Florian

emkookmer commented 3 years ago

@Rubique what has been your solution for this problem ❓