1 Rookie
•
32 Posts
0
247
SCG-5.20 upgrade failed on podman
Hi,
I just tried to upgrade my SCG virtual edition from 5.18 to 5.20. I'm using podman.
# ./SCG-5.20.00.10.bin --upgrade
Error: template: info:1:2: executing "info" at <.DockerRootDir>: can't evaluate field DockerRootDir in type *define.Info
The script contains the command
if command -v docker &> /dev/null && docker info &> /dev/null; then
DOCKER_STORAGE_PATH=$(docker info -f '{{.DockerRootDir}}')
fi
The DockerRootDir variable is not known to podman. SCG-5.18 contained the code
DOCKER_STORAGE_PATH='/var/lib/docker'
What can I do?
Regards,
Dirk
dirkuos
1 Rookie
1 Rookie
•
32 Posts
0
November 15th, 2023 08:25
Finally, I could upgrade SCG. The problem was the podman-docker.rpm that contains the /usr/bin/docker command for compatibility reasons. It seems, that the SCG script is looking for the docker command, and if it finds the command, it tries to get the DockerRootDir variable, which doesn't exist on podman. Then the error is thrown and the upgrade fails.
After erasing the rpm ("dnf erase podman-docker") the upgrade was running successfully.