Skip to content

Install Docker and Docker Compose (AWS-Linux-RHEL)#

  1. Log on to your Privacera host as ec2-user or a user with 'sudo' privileges.

  2. Install Docker:
    (a) Use 'yum' to obtain Docker;
    (b) Reconfigure limits;
    (c) Start Docker Service
    (d) Add your root user (e.g. 'ec2-user') to the docker group.
    (e) Exit

    From the command prompt execute 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 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:

    1. Set the requested Docker Compose version;  

    2. Download  docker-compose

    3. Set access to eXecutable

      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: July 23, 2021