Docker on ARM64

Docker on ARM64 functions much the same way as on x86, however, a Docker host can only run containers built for its architecture. Thankfully, multi-architecture support has been built into recent docker versions.

Example:

root@debian-arm64:~# uname -a
Linux debian-arm64 4.14.0-00025-g94bc5e36 #1 SMP PREEMPT Tue Nov 21 02:46:50 UTC 2017 aarch64 GNU/Linux

root@debian-arm64:~# docker run -i -t debian:latest
Unable to find image 'debian:latest' locally
latest: Pulling from library/debian
0e5a8be23912: Pull complete
Digest: sha256:26b2647845d66e20eeadf73d1c302a4ffd2cc9a74c39a52f2aced4f823484328
Status: Downloaded newer image for debian:latest

root@c8e06feb294d:/# uname -a
Linux c8e06feb294d 4.14.0-00025-g94bc5e36 #1 SMP PREEMPT Tue Nov 21 02:46:50 UTC 2017 aarch64 GNU/Linux

As of April 2018, official Debian and CentOS packages for arm64 exist, but this is not advertised on the Docker website.

Simply specify 'arm64' as the architecture when adding the Docker repository (Debian). Under CentOS, you can simply add the Docker repository as per usual.

Further reading: