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

Update docker-compose version with bash

Install the latest version of docker-compose

docker

How to simply use Docker to create an internet command line speed test program?

How to simply use Docker to create an internet command line speed test program? Here we use the python program speedtest-cli Will use Docker for the main use case, for example, I want to test the speed in my NAS, Although there is python in my NAS, but there is no pip command, it feels much safer to use Docker at this time. Of course, your NAS needs to be able to run Docker :). Or, I am in a MacOS environment, and I don't want to install speedtest-cli into my MacOS. At this time, it is not bad to use Docker to build a simple execution environment by yourself.

linux,docker

How to execute X client and X Window in Container (docker gui)

Today I will talk to you about X, not iPhone X, nor X-Men, but X Window System, He is the main graphical interface display component of the current Linux system. Since it is very easy to expand and modularize, it has been used since it was established in 1986. The X Window system adopts the Client/Server architecture, which splits the application program and the display into two. The application program of X Windows is usually called X Client, and the display is the well-known X Server. The X client communicates with the X server through the X protocol (X protocol), which is an asynchronous network communication protocol.