by Devin Yang
(This article was automatically translated.)

Published - 6 years ago ( Updated - 6 years ago )

foreword

This article briefly introduces how we install docker and docker-compose on Raspberry Pi.

step

1. Install docker using official instructions
curl -sSL https://get.docker.com | sh
2. After the installation is complete, to allow non-Root users to use docker, please add the user to the docker group.
The default user of RASPBIAN on Raspberry is pi, so the command is as follows:
sudo usermod -aG docker pi
If you don't know what your username is, you can also do this
sudo usermod -aG docker ${USER}
After completion, please log in to the bash environment again to take effect.
At this time, if you enter the docker version normally, you should see the following screen:


Next, let's install docker-compose.
It's very simple, we can search for docker-compose install with Google and we should be able to find the official installation webpage instructions
https://docs.docker.com/compose/install/#install-compose
Please select the Tab of Alternative Install Options (alternative installation options).
Here, we can simply install through pip
sudo pip install docker-compose
When finished, hit docker-compose version to see if there is any response.

Above, the installation of docker and docker-compose on Raspberry is completed.


 

Tags: docker

Devin Yang

Feel free to ask me, if you don't get it.:)

No Comment

Post your comment

Login is required to leave comments

Similar Stories


docker,phpenv

Unable to ping host.docker.internal on Linux

You can check with docker version, confirm that the version is Docker v20.10+, you can add extra_hosts as follows:

d-laravel, docker, docker-compose, laravel

D-Laravel released v0.9.1 version

In order to keep D-Laravel in an operational version and a stable version. Start tagging this version Pass those tests.. This version has passed the ubuntu real and macos real machine tests, and the Container can be successfully established and executed..

docker

D-Laravel on .env and docker-compsoe small classroom

This article introduces why the docker-compose ps official command cannot list all the services in use when we use D-Laravel's .env to load multiple yml files. But the ./console ps on D-Laravel can indeed display normally, so how can the official docker-compose command be used to have the same effect?