Skip to main content

Docker Installation (EC2)

This page assumes that you have already configured and deployed an EC2 instance on your AWS account and have configured it with the AWS VPC. For more information on how to deploy an EC2 instance in AWS please visit: EC2 Get Started.

To install docker on your instance follow the below steps. In the following example we are using the Amazon Linux 2023 AMI, the commands may differ if you are using a different Linux distribution:

  • Connect to your AWS EC2 instance via a SSH client, example connection command:
ssh -i "XKS_proxy_key.pem" ec2-user@ec2-1-2-3.eu-central-1.compute.amazonaws.com

For more options on how to connect to your EC2 instance see Connect to your Linux instance.

Execute the following commands to download and install Docker:

  • Apply pending updates using the yum command:
yum update
  • To install docker, run the following command:
yum install docker
  • Start docker service:
systemctl start docker.service
  • Optionally enable docker service at AMI boot time by executing the following command:
systmctl enable docker.service

After successfully installing Docker, it is recommended to configure the docker groups and assign users ac-cording to your company specifications. xks\ressources\resources\resources\img\xks-simple-architecture.png