Instructions for installing Docker Compose
Внимание
All commands during the installation process should be run as root or any other user with sudo rights.
Предупреждение
In the case of installing the version «Smolensk» or «Voronezh» on Astra Linux OS with the mandatory integrity control mode enabled, you will need to execute commands from a user with a high integrity level. You can check the integrity level with the command:
pdp-id
To install Docker Compose:
Install the required packages:
apt update apt install docker.io
Add the official Docker repository and install the required packages:
curl https://download.docker.com/linux/centos/docker-ce.repo -o /etc/yum.repos.d/docker-ce.repo yum install yum-utils \ device-mapper-persistent-data \ docker-ce \ -y
Start the docker service:
systemctl start docker
Ensure that the docker service starts automatically after a server reboot:
systemctl enable docker
Download docker-compose from the official repository:
curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin /docker-compose
Change the permissions of the /usr/local/bin/docker-compose file:
chmod +x /usr/local/bin/docker-compose
Install the required packages:
yum install yum-utils \ device-mapper-persistent-data \ docker-ce \ -y
Start the docker service:
systemctl start docker
Ensure that the docker service starts automatically after a server reboot:
systemctl enable docker