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, d-laravel, docker-compose, laravel

docker-compose loads multiple configuration files

We will use docker --network to establish multiple container interconnections, but if there are four containers, Is it necessary to issue docker run instructions for different containers four times, kill me, This article introduces the establishment of multiple containers at one time through the yaml file definition of docker-compose. Learn how to load multiple configuration files with the dokcer-compose -f parameter.  

docker

Command to remove all docker containers and docker images

Sometimes I tried a bunch of containers or images in my own environment, how to remove all images and containers in the system? These instructions are provided for your reference..

docker,cli

Docker container formatted display

I think if you want to write some automation functions, it may be useful to be able to format the output container content. The following are some reference examples of Docker container formatting and display instructions