Smart Home Automation Forum
how to install docker on KC868-Server CM4 by raspberry pi OS - Printable Version

+- Smart Home Automation Forum (https://www.kincony.com/forum)
+-- Forum: Technical Support (https://www.kincony.com/forum/forumdisplay.php?fid=1)
+--- Forum: Home automation training courses (https://www.kincony.com/forum/forumdisplay.php?fid=18)
+--- Thread: how to install docker on KC868-Server CM4 by raspberry pi OS (/showthread.php?tid=2674)



how to install docker on KC868-Server CM4 by raspberry pi OS - admin - 03-13-2023

A. install docker on KC868-Server CM4 on raspberry pi OS

1. sudo curl -sSL https://get.docker.com | sh

2. sudo docker run hello-world

this test whether docker install correct.

3. sudo systemctl daemon-reload

4. sudo systemctl docker

5. sudo systemctl start docker

B. install GUI portainer

1. sudo docker pull portainer/portainer

2. sudo docker volume create portainer_data

3. docker run -d -p 9000:9000 --name portainer --restart always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer

4. login web browser by http://ip:9000