I will write about Docker and docker-compoes that I am studying recently. Actually, I wanted to create an operating environment using the same Dockerfile and yml and write it to the point where I realized the convenience, but I will do it next time.
Is it because Raspberry Pi is ARM? , The installation method is different from the Linux version.
--Raspberry Pi 4 + Rasbian10
$ sudo apt-get update
$ sudo apt-get install git-all
$ sudo apt-get install curl
$ curl -sSL https://get.docker.com | sh $ docker -v Docker version 19.03.13, build 4484c46d9d
If version is displayed, installation is successful.
Run the environment docker-compose instal shell obtained from git
$ git clone https://github.com/docker/compose.git $ cd compose $ git checkout 1.27.4 $ sudo ./script/build/linux $ cd dist $ sudo cp docker-compose-Linux-armv7l /usr/local/bin/docker-compose $ cd /usr/local/bin $ sudo chown root:root docker-compose $ sudo chmod 755 docker-compose $ docker-compose -v docker-compose version 1.27.4, build 40524192
If version is displayed, installation is successful.
This is the same as Raspberry Pi, so omitted
$sudo apt-get -y remove docker docker-engine docker.io $sudo apt-get -y update $sudo apt-get -y install \ apt-transport-https \ ca-certificates \ curl \ gnupg2 \ software-properties-common $sudo curl -fsSL https://download.docker.com/linux/$(. /etc/os-release; echo "$ID")/gpg | sudo apt-key add - $sudo add-apt-repository \ "deb [arch=amd64] https://download.docker.com/linux/$(. /etc/os-release; echo "$ID") \ $(lsb_release -cs) \ stable" $sudo apt-get update $sudo apt-get -y install docker-ce $docker -v Docker version 19.03.13, build 4484c46d9d
If version is displayed, installation is successful.
Run the environment docker-compose instal shell obtained from git
$sudo curl -L https://github.com/docker/compose/releases/download/1.27.4/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose $sudo chmod +x /usr/local/bin/docker-compose docker-compose --version docker-compose version 1.27.4, build 40524192
If version is displayed, installation is successful.
I didn't do it manually, so it's almost a reference. ..
See below. https://support.microsoft.com/ja-jp/help/4028685/windows-10-get-the-update
See below. https://docs.microsoft.com/ja-jp/windows/wsl/install-win10
See below. https://docs.docker.com/docker-for-windows/install/
Next time, I will write a place to prepare and execute Dockerfile and yml file.
Recommended Posts