Francisco Jiménez Cabrera
Francisco Jiménez Cabrera I have always been interested in computer and technology scene. Currently, I spend my days working as a web developer at Canonical.

Running Ubuntu ARM64 with Docker

Running Ubuntu ARM64 with Docker

Hi there! Here is a basic guide and easy way to run Ubuntu ARM64 or any Docker container in different architectures.


The only requirement is to have Docker installed. Because I run Linux (Ubuntu), I prefer to install it with the docker snap. If you have it already, you can skip this section.

To install it:

sudo snap install docker

Set up Docker group:

sudo addgroup --system docker
sudo adduser $USER docker
newgrp docker
sudo snap disable docker
sudo snap enable docker

Running images from different architectures

By default, you can’t run images that are not for your host architecture on Docker: image

However, it is possible to set up Docker to use QEMU, an emulator to run these images, and there is an easy way to do it.

docker run --privileged --rm tonistiigi/binfmt --install all

This simple container will configure your host for you, automatically setting up Qemu for Docker. For more details, you can check their GitHub repo.

And we are done! In this case, I am running an Ubuntu image for ARM64:

docker run -it --rm --platform linux/arm64 arm64v8/ubuntu sh


Enjoyed this article? Support my work!

If you found this content helpful, consider buying me a coffee to show your appreciation.

Buy me a coffee