Prerequisites
Software and hardware requirements
ADCM is a software that is distributed in the form of a Docker Image. To install it, you need:
-
A maintained version of the CentOS 7/RHEL 7/Alt Linux SP 8 operation system. Archived versions are not supported or tested.
-
A user account with
sudo
privileges. -
An access to the official repository of CentOS Extras and CentOS Base. This repository is enabled by default, but if you have disabled it — you need to re-enable it (e.g. via editing the repository configuration file in the /etc/yum.repos.d/ directory).
-
The software package installer YUM/APT.
-
The hardware that meets the following conditions:
-
CPU: 2-4 CPU cores;
-
RAM: 8-16 GB;
-
HDD: 8-50 GB.
-
Install Docker
CAUTION
Do not install Docker from the official Docker site. Instead of it, use the official repositories of your Linux distribution. The repositories provided by operation system developers tend to be more stable and secure. |
The typical installation sequence via the package manager YUM includes the following steps:
-
Using
root
privileges, update all packages that are currently installed in your system:$ sudo yum update -y
-
Install the packages required for Docker installation and using:
$ sudo yum install -y yum-utils docker device-mapper-persistent-data lvm2
-
Start Docker:
$ sudo systemctl start docker
-
Enable Docker as a system service:
$ sudo systemctl enable docker
Disable SELinux (optionally)
To disable SELinux permanently, set SELINUX=disabled
in the /etc/selinux/config file and reboot your system.
You can edit the file via the vi
or vim
command:
$ sudo vi /etc/selinux/config
The content of the changed file should look like this:
# This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: # enforcing - SELinux security policy is enforced. # permissive - SELinux prints warnings instead of enforcing. # disabled - SELinux is fully disabled. SELINUX=disabled # SELINUXTYPE= type of policy in use. Possible values are: # targeted - Only targeted network daemons are protected. # strict - Full SELinux protection. SELINUXTYPE=targeted
You can also disable SELinux temporarily via the following command:
$ sudo setenforce 0
Still, it is strongly recommended to disable SELinux permanently, so that it does not restart on each system reboot.
CAUTION
Do not forget to reboot your host after SELinux is disabled. |
Stop firewall
If you use the firewalld service — please, stop it before installing ADCM. You can use this command:
$ sudo systemctl stop firewalld
As an alternative, you can disable the firewalld service, so that it will not apply rules to network packets:
$ sudo systemctl disable firewalld
Allow access to the Docker CLI without root privileges
If in the future you want to access the Docker CLI without using root
privileges, you should create a docker
user group (if it does not exist) and add the current user to this group with the certain rights:
$ sudo groupadd docker
$ sudo usermod -a -G docker $USER
After running these commands, you should re-login under the current user.