Category: Docker

As the expansion in arm usage continues, building your images on arm is crucial to making images available and performant across all architectures which is why we’ve invested in making it super easy to build arm and multi-arch images. In this blog we outline how to get started using a remote builder to accomplish the same goal, for our purposes we will be using an Amazon EC2 instance.

Using a Graviton2 instance to build your arm images remotely will speed up the process, making it even easier to develop containers on, and for, arm servers and devices.

In order to start with using a remote builder with Buildx and BuildKit on Graviton2 the host needs to be accessible through the Docker CLI, using ssh://@ URL as follows: Now you can register this remote Graviton2 instance to Docker Buildx using the create command: --platform is specified so that this node will be preferred for arm64 builds when we add other nodes to this build cluster. Bootstrap the builder to check and create the BuildKit container on the remote host: Now we will create a simple Dockerfile: And let’s build the image against our builder: You can also append other Graviton2 instances (node) to the same builder with: Note the --append flag to add a node to the existing graviton2 builder.

Related Articles