Skip to content

System Requirements for Docker in AWS#

Hardware#

EC2 Instance having minimum of 8 cores, 32GB RAM & 100GB Storage (currently m5.2xlarge Instance Type).

Software#

The following packages would be required on your instance as per your operating system:

  • yum and rpm (RHEL/CentOS/Oracle/Amazon Linux)
  • zypper and php_curl (SLES)
  • apt (Debian/Ubuntu)
  • ssh, curl, tar, wget and gcc*
  • OpenSSL (v1.01, build 16 or later)
  • Python (with python-devel*)
  • Docker and Docker Compose
  • User account with sudo permissions

Network#

  • Selinux, firewall/iptables should be disabled to allow communication.
  • List of ports that can be configured for inbound & outbound connections. To know more about the service ports, click here.

IAM Policy and Permissions#

For information on the IAM policy for EC2 instance, follow the link to configure access for each service.

Install Docker and Docker Compose#

  1. Log on to your Privacera host as ec2-user or a user with 'sudo' privileges.
  2. Install Docker, by executing the following:

    sudo yum install -y docker
    sudo sed -i 's/1024:4096/1024000:1024000/g' /etc/sysconfig/docker
    sudo cat /etc/sysconfig/docker
    sudo service docker start
    sudo systemctl enable docker
    sudo usermod -a -G docker ec2-user
    exit
    
  3. Log back into the same user account as in step 1. (This forces the usermod action).

  4. Install Docker-Compose:

    DOCKER_COMPOSE_VERSION="1.23.2"
    sudo curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
    sudo chmod +x /usr/local/bin/docker-compose
    

Last update: September 14, 2021