Migrate HEAL from Podman to Docker
Run the migration script to move a HEAL deployment from Podman to Docker.
1. Extract the Migrate_Docker.tar.gz file by executing the below command:
tar -xvf Migrate_Docker.tar.gz
2. Once the package is extracted, change the directory:
Navigate to the Migrate_Docker directory by executing the below command:
cd Migrate_Docker
3. Find the below Migration Script:
migrate_docker.sh
Execute the script as mentioned below,
- Single Node HEAL
bash migrate_docker.sh <Installation Dir>
Replace <Installation Dir> with a1home path.
For Example:
bash migrate_docker.sh '/opt/Heal'
- HEAL Multi-nodes
bash migrate_docker.sh <Installation Dir> <Remote IPs>
Replace <Installation Dir> with a1home path, and <Remote IPs> with the space-separated IP addresses of the remote hosts to which you want to migrate.
For Example:
bash migrate_docker.sh '/opt/Heal' '192.0.2.29 192.0.2.30'
4. After executing the migration script, if the program exits with the following messages,
- Connection error:
Error querying servers: Get "https://localhost:4646/v1/agent/members": dial tcp [::1]:4646: connect: connection refused
[@@datestamp@@] [Error] [nomad cluster not formed. Please fix it manually and try again]
Follow the below steps to resolve the issue:
a. Execute the below command:
<< nomad server members>>
b. If the output shows all servers then re-run the migrate script.
- The error between the packages:
Error:
Problem: package containerd.io-1.6.27-3.1.el8.x86_64 conflicts with
runc provided by runc-1:1.1.4-1.module+el8.8.0+19993+47c8ef84.x86_64
- package containerd.io-1.6.27-3.1.el8.x86_64 obsoletes runc
provided by runc-1:1.1.4-1.module+el8.8.0+19993+47c8ef84.x86_64
- package docker-ce-3:25.0.1-1.el8.x86_64 requires containerd.io
>= 1.6.24, but none of the providers can be installed
- package buildah-1:1.29.1-2.module+el8.8.0+19993+47c8ef84.x86_64
requires runc >= 1.0.0-26, but none of the providers can be
installed
- cannot install the best candidate for the job
- problem with installed package buildah-1:1.29.1-
2.module+el8.8.0+19993+47c8ef84.x86_64
(try to add '--allowerasing' to command line to replace conflicting
packages or '--skip-broken' to skip uninstallable packages or '--
nobest' to use not only best candidate packages)
Error occured during installation : docker-ce
+ '[' 205 -ne 0 ']'
+ logger Error 'docker installation Failed. Exitting. Please
download the rpm manually and install it or contact IT team.'
++ date '+%d-%m-%y %H:%M:%S'
+ dt='06-06-24 05:53:11'
+ [[ Y == \Y ]]
+ echo '[06-06-24 05:53:11]' '[Error]' '[docker installation Failed.
Exitting. Please download the rpm manually and install it or contact
IT team.]'
Follow the below steps to resolve the issue:
a. Uninstall the below rpms in all the heal servers.
rpm -e buildah-1:1.29.1-2.module+el8.8.0+19993+47c8ef84.x86_64
rpm -e containers-common-2:1-64.module+el8.8.0+19993+47c8ef84.x86_64
rpm -e runc-1.1.4-1.module+el8.8.0+19993+47c8ef84.x86_64
b. Re-run the migration script.