Install docker-compose on a Graviton 2 instance of AWS EC2

Thanks to Graviton2, the environment of arm64 architecture has become easy to use. As with performance, it has the advantage of being cheaper than Intel and AMD, so I would like to actively use it. It's a little painful that it can't be used with Spot Instances at the moment, but it will be dealt with as the number of users increases.

For the time being, when I tried to set up a t4g instance and use it, I got stuck for a while with the installation of docker-compose, so make a note.

environment

--t4g.micro instance

What's wrong

There is no problem with Docker because you can install the one provided by AWS with yum, but you need to install docker-compose yourself.

So, as for the released ones, only x86_64 ones are prepared as shown in here. So, try installing with pip.

$ sudo yum install python3 python3-dev python3-pip gcc make openssl-devel libffi-devel
$ sudo pip3 install -U docker-compose

This does not pass. You can build a package called Cryptography.

What happened

OpenSSL that can be installed normally on Amazon Linux 2 is 1.0 series, but Cryptography seems to have discontinued support for OpenSSL 1.0. Therefore, it was necessary to prepare OpenSSL 1.1 series.

$ sudo yum remove openssl openssl-devel
$ sudo yum install openssl11 openssl11-devel openssl11-libs
$ sudo pip3 install wheel
$ sudo pip3 install -U docker-compose

works for me.

Recommended Posts

Install docker-compose on a Graviton 2 instance of AWS EC2
Install docker on AWS EC2
How to install Ruby on an EC2 instance on AWS
How to create a web server on an EC2 instance on AWS
EC2 on Docker-compose
Build a Laravel environment on an AWS instance
[Oracle Cloud] Install the free Oracle JDK 11 (LTS) on a virtual instance of OCI
Memo to build a Servlet environment on AWS EC2
Deploy laravel using docker on EC2 on AWS ① (Create EC2 instance)
[AWS] Link memory usage of Ubuntu EC2 instance to CloudWatch
How to create an application server on an EC2 instance on AWS
Gcc error solution with "pip install annoy" on AWS EC2
Install Docker on AWS Ubunt 20.04 LTS
Install AWS IoT Greengrass on Ubuntu
Build a Minecraft server on AWS
A memorandum of personal phpenv install
Install SonarQube on ECS instance on Ubuntu 16.04
[Rails] AWS EC2 instance environment construction
Summary of Docker understanding by beginners ⑤ ~ Until deploying docker container on EC2 instance ~
Build a development environment on AWS EC2 with CentOS7 + Nginx + pm2 + Nuxt.js
Install docker and docker-compose on Alpine Linux
EFS mount on AWS Ubuntu EC2 (amazon-efs-utils)
Headless install of Ubuntu 20.10 on Raspberry Pi
Build a Maven repository on AWS S3
How to deploy a container on AWS Lambda
Error installing ruby execution environment on EC2 instance
Browse an instance of Tab's View on Android
[Ruby on Rails] A memorandum of layout templates
Install Java, Apache, Tomcat9 on EC2 (Amazon Linux2)
Install the latest version of Jenkins on Ubuntu 16
[CentOS7] Install aws cli regardless of python version
I tried installing docker on an EC2 instance
Recipe for deploying Rails apps on AWS EC2
[AWS] Health check of EC2 instance (target group) fails by all means in ALB. ..