The simpler way to install Docker CE on Amazon Linux 2
Containerization on AWS EC2

Search for a command to run...
Containerization on AWS EC2

No comments yet. Be the first to comment.
Introduction In our previous article, part 2 of the series, we walked through the extraction, processing, and creation of some data mart, using the New York City taxi trip data which is publicly available to do consumption. We used some of the princi...

Introduction In part 1 of this article series, we walked through how to feed a Data Lake built on top of Amazon S3, based on streaming data, using Amazon Kinesis. In part 2, we will cover all of the steps needed to build a Data Lakehouse, using trip ...

The Data Lakehouse is a new architecture that combines the flexibility, low cost, and scale of data lakes with the data warehouses' power.

To start our series of posts, with the main objective of knowledge sharing, I'll explain the simpler way to install Docker CE and Docker Compose within an EC2 instance.
Since the second version of Amazon Linux AMI, AWS has changed the way of installing some OS packages, for that, we won't use the default package manager yum. For more details, take a look at the release notes.
sudo amazon-linux-extras install docker
sudo service docker start
sudo usermod -a -G docker ec2-user
Enabling Docker service to automatic start at boot.
sudo chkconfig docker on
Installing some extra packages, git and netcat (nc).
sudo yum install -y git nc
Download the latest version, directly from GitHub.
sudo curl -L https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
Change the file permissions, to make it executable.
sudo chmod +x /usr/local/bin/docker-compose
Check the Docker Compose version.
docker-compose version