Install Docker and Docker Compose (AWS-Linux-RHEL)
-
Log on to your Privacera host as ec2-user or a user with 'sudo' privileges.
-
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) ExitFrom 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
-
Log back into the same user account as in step 1. (This forces the usermod action).
-
Install Docker-Compose:
-
Set the requested Docker Compose version;
-
Download docker-compose
-
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
-