Code in this video_Install Docker on Raspberry Pi

✳️ Replace the highlighted information with your own


sudo apt install -y curl git net-tools -y

curl -fsSL https://get.docker.com | sh

sudo usermod -aG docker $USER

### daemon.json

{
"log-driver": "json-file",
"log-opts": {
"max-size": "10m",
"max-file": "3"
}
}

### PORTAINER

version: "3.8"

services:
portainer:
image: portainer/portainer-ce:latest
container_name: portainer
restart: unless-stopped

security_opt:
- no-new-privileges:true

ports:
- "9000:9000"
- "9443:9443"

volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./data:/data

environment:
- TZ=Asia/Ho_Chi_Minh

networks:
- docker_net

networks:
docker_net:
driver: bridge


Read more

Leave a Reply

Your email address will not be published. Required fields are marked *