What I wrote here is the story as of November 28, 2020. The Docker environment on the Raspberry Pi changes drastically.
64bit of Raspberry Pi OS is still beta version. However, since the number of apps that support only 64bit is increasing, use Ubuntu.
The versions installed from the distribution are usually older, so register and use the official Docker repository.
https://docs.docker.com/engine/install/ubuntu/
$ sudo apt-get update
$ sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
software-properties-common
$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
$ sudo apt-key fingerprint 0EBFCD88
$ sudo add-apt-repository \
"deb [arch=arm64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
$ sudo apt-get update
$ sudo apt-get install docker-ce docker-ce-cli containerd.io
The ARM version of docker-compse has not been released from Official. ~~ Compile by yourself ~~ Install with pip3.
$ sudo apt-get install libffi-dev libssl-dev
$ sudo apt-get install python3 python3-pip python3-dev
$ sudo pip3 install docker-compose
--Python3 may be installed by default
MySQL
--NG (Image cannot be downloaded)
$ docker pull mysql
$ docker pull mysql/mysql-server
Replace the part where image: mysql is written in docker-compose.yml with mysql / mysql-server (behavior does not change much)
――The difference between the two is that the former is the Docker official (debian base) and the latter is the Oracle official (Oracle Linux base).
phpmyadmin
-** It didn't work ** It seems that I was trying to run the AMD64 version.
$ docker run phpmyadmin/phpmyadmin
exec user process caused "exec format error" I got a docker error and it was moss.
$ docker run arm64v8/phpmyadmin
--If the official image doesn't work, you may want to check https://hub.docker.com/u/arm64v8.
jwilder/nginx-proxy
This also doesn't work. Looking at the Dockerfile, the included tool was hard-coded for the amd64 version. It seems that it is necessary to compile the arm64 version of the tool that I put together, so for the time being the path.
Recommended Posts