The key to running Docker on Raspberry Pi 4 (Ubuntu server 20.04)

at first

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.

docker uses official latest

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

Insert docker-compose

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

The key to running Docker on Raspberry Pi 4 (Ubuntu server 20.04)
Serially connect to Ubuntu on Raspberry Pi
Radiko recording server on Raspberry Pi 4 (Docker unused)
Install Docker on Raspberry Pi
Put Ubuntu 20.04.1 on Raspberry Pi 4
Install Docker on Ubuntu Server 20.04
Minecraft server on Raspberry Pi 4
Just plug in the storage and power to run the Raspberry Pi (Ubuntu Server Edition)
Ubuntu on WSL2: Cannot connect to the Docker daemon at unix
I tried running Docker on Windows Server 2019
Headless install of Ubuntu 20.10 on Raspberry Pi
I installed Docker on my Raspberry Pi 3
How to change the timezone on Ubuntu
Launched Redmine with Docker on Raspberry Pi 3
Install Ubuntu Core 18 on Raspberry Pi 2 Model B
Install Docker on Raspberry Pi 4 and Raspberry Pi OS 64bit
Ssh login to the app server on heroku
Send emails using Docker container on Raspberry Pi 3
Introduced GROWI to Raspberry Pi 4 Model B (Ubuntu)
Build Ubuntu 20.04 LTS desktop environment on Raspberry Pi 4 (+ Japanese)
How to run javafx with Raspberry Pi Posted on 2020/07/12
Try switching from the RHEL environment to the Ubuntu environment Server installation
Build VNC Server on Ubuntu 20.04
[Note] Flow from docker installation to JupyterLab startup on ubuntu
I want to use screen sharing on the login screen on Ubuntu 18
Oracle Java 8 on Docker Ubuntu
Apache Geode-Easy way to execute logic on the server side
Install docker and docker-compose on ubuntu in the shortest process
How to run React and Rails on the same server
Install Ubuntu Server 20.04 on Btrfs
When the docker image created on Raspberry pi is read by docker on windows, the error "exec format error" appears.
The story of fighting ubuntu errors 0x80370114, 0x80000000 to enable docker desktop with wsl2 on windows10 home
Install Docker and docker-compose on Raspberry Pi 4, Linux (Debian) and Windows 10, respectively
I tried to build the environment of PlantUML Server with Docker
20.10 is better than 20.04 for USB booting Ubuntu on Raspberry Pi 4B
How to install and configure the monitoring tool "Graphite" on Ubuntu
"Dh key too small" appears when connecting to https on Ubuntu
How to place and share SwiftLint config files on the server
Display user-defined characters on the I2C 1602 LCD with Raspberry Pi 3 & Java
Install Ubuntu20.04 on RaspberryPi 4 and build Kubernetes to run the container
Install MariaDB on Raspberry Pi OS
Steps to run docker on Mac
Build the latest Samba 4 on Ubuntu 20.04
To beginners launching Docker on AWS
Migrate Docker image to another server
Try putting CentOS 8 on Raspberry Pi 3
Run the AWS CLI on Docker
How to run JavaFX on Docker
Note: setting javaMail on Raspberry Pi
How to use Bio-Formats on Ubuntu 20.04
How to install WildFly on Ubuntu 18.04
Preparing to use electron-react-boilerplate on Ubuntu 20.4
Deploy Rails on Docker to heroku
How to build vim on Ubuntu 20.04
Building a DLNA server on Ubuntu (just move for the time being)
[Java] How to retrieve the parameters passed from html on the server side
Solved the problem of freezing due to sudden "EXT4-fs error" on Ubuntu 20.04
Put Zabbix in Ubuntu with Docker and monitor Docker on the same host
[Docker] How to build when the source code is bind-mounted on the container
I tried migrating the portfolio created on Vagrant to the Docker development environment
Raspberry Pi Kubernetes and Docker downgraded story