install docker via snap

  • Post category:技术

install docker

sudo snap install docker

add permision for normal user

Create and join the docker group.

$ sudo addgroup --system docker
$ sudo adduser $USER docker
$ newgrp docker

You will also need to disable and re-enable the docker snap if you added the group while it was running.

$ sudo snap disable docker
$ sudo snap enable docker

add docker compose (armv7)

sudo curl -SL https://github.com/docker/compose/releases/download/v2.5.0/docker-compose-linux-armv7 -o /usr/local/bin/docker-compose

sudo chmod +x /usr/local/bin/docker-compose
Continue Readinginstall docker via snap