Podman-to-Docker Migration Prerequisites
Checks to complete before migrating HEAL from Podman to Docker.
Ensure the following points are met:
1. HEAL is installed with a podman.
2. The below config files exist,
a. generalConf.py
b. extendedConf.py
3. The nomad and consul have to be up and running.
4. Stop all the services by executing the below command:
stopServices.sh
5. Follow the below steps to remove the image version from the registry and keep only the image version present in the nomad file for all the modules,
a. The below command will list out all the modules present,
curl -k -X GET https://<HOST_ENTRY>:<registry_listen_port>/v2/_catalog
b. The below command will provide the list of image versions available in the registry for the specific module,
curl -k -X GET https://<HOST_ENTRY>:<registry_listen_port>/v2/<module_name>/tags/list
c. Remove all the older images, if available in the podman registry,
bash clearRegistry.sh <HOST_ENTRY>:<registry_listen_port> <module_name> "<module version>"
For Example:
bash clearRegistry.sh <HOST_ENTRY>:<registry_listen_port> heal-controlcenter "1.4.0"
6. Navigate to the below directory,
<a1home>/conf/.Inter_Conf
7. Verify if the last entry ends with a comma in the below file:
docker_host_entry.txt
8. Stop the podman registry running on the primary node, by below steps:
a. List all the podman containers running, by executing the below command,
podman ps
b. Execute the below command to stop podman,
podman stop <container-id of podman registry>
9. The below file should be available on your system before proceeding with the migration process.
Migrate_Docker.tar.gz