Installing the management server
Prerequisites
To install the management server in a Docker container, you need the following files:
- AB_AMS_prepare_env_ams.sh
-
The Docker image of the management server
The procedure below uses acronisbackup17ams_41023.image as an example.
To install the management server in a Docker container
sudo or run them under the root account.-
Load the Docker image for the management server.
Input template
docker load -i /<path>/<image file>
Input example
sudo docker load -i ./acronisbackup17ams_41023.image
-
Open the AB_AMS_prepare_env_ams.sh file for editing and ensure that the script uses the correct image name and build number.
In this example,
acronisbackup17ams:41023.1 #! /bin/bash
2
3 DOCKER_IMAGE=acronisbackup17ams:41023 - If necessary, edit the script, and then save the AB_AMS_prepare_env_ams.sh file.
-
Assign the execute permission to the AB_AMS_prepare_env_ams.sh file, and then run it.
Input template
chmod +x /<path>/AB_AMS_prepare_env_ams.sh
/<path>/AB_AMS_prepare_env_ams.sh
Input example
sudo chmod +x ./AB_AMS_prepare_env_ams.sh
sudo ./AB_AMS_prepare_env_ams.sh
-
Start a new Docker service to create the container with Acronis Management Server.
Input template
sudo docker service create -p 9877:9877 -p 7780:7780 --ulimit nofile=50000:50000 --name="ams" --mount target="/var/log",source="AcronisAMS_var_log" --mount target="/opt/acronis",source="AcronisAMS_opt_acronis" --mount target="/etc",source="AcronisAMS_etc" --mount target="/usr/sbin",source="AcronisAMS_usr_sbin" --mount target="/var/lib/Acronis",source="AcronisAMS_var_lib_acronis" --mount target="/usr/lib/Acronis",source="AcronisAMS_usr_lib_acronis" --mount target="/usr/pgsql-15",source="AcronisAMS_usr_pgsql" --secret src=ams_masterkey,target="/var/lib/Acronis/CredStore/masterkey.local" --secret="ams_masterkey" "<image:build>"
Input example
sudo docker service create -p 9877:9877 -p 7780:7780 --ulimit nofile=50000:50000 --name="ams" --mount target="/var/log",source="AcronisAMS_var_log" --mount target="/opt/acronis",source="AcronisAMS_opt_acronis" --mount target="/etc",source="AcronisAMS_etc" --mount target="/usr/sbin",source="AcronisAMS_usr_sbin" --mount target="/var/lib/Acronis",source="AcronisAMS_var_lib_acronis" --mount target="/usr/lib/Acronis",source="AcronisAMS_usr_lib_acronis" --mount target="/usr/pgsql-15",source="AcronisAMS_usr_pgsql" --secret src=ams_masterkey,target="/var/lib/Acronis/CredStore/masterkey.local" --secret="ams_masterkey" "acronisbackup17ams:41023"
At the end of this command, you must use an image name and build number that depend on the image file.
In the example above, these are acronisbackup17ams:41023. To check them for your image, run the
docker imagescommand, and then see theREPOSITORYandTAGcolumns.Input example
sudo docker images
Output example
# REPOSITORY TAG IMAGE ID CREATED SIZE # acronisbackup17ams 41023 2deb8b4b25f9 About an hour ago 3.05GB
-
Enter the container, and then set the password for the root user.
-
Check the container ID.
Input example
sudo docker service ps -a
Output example
# CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES # bfb9d14d4879 acronisbackup17ams:41023 "/bin/bash -c'/opt/..." 2 minutes ago Up 2 minutes 7780/tcp, 9877/tcp ams.1.ko7xklvta28rasyukn6kic1ka
-
Enter the container.
Input template
docker exec -it <container ID> bash
Input example
sudo docker exec -it bfb9d14d4879 bash
-
Set the password for the root user.
Input template
echo root:<your_new_root_password> | chpasswd
Input example
sudo echo root:MyPassword | chpasswd
-
-
Log in as the root user to the Cyber Protect console at http://ip_docker_host:9877.
In this example, the credentials are
root/MyPassword.