Skip to content

Commit 0ee8d99

Browse files
committed
dependencyinstaller: do not reinstall docker if it is installed
Signed-off-by: Øyvind Harboe <[email protected]>
1 parent 7888641 commit 0ee8d99

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

etc/DependencyInstaller.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,14 @@ _installUbuntuPackages() {
160160
rm -rf "${baseDir}"
161161
fi
162162

163+
if command -v docker &> /dev/null; then
164+
# The user can uninstall docker if they want to reinstall it,
165+
# and also this allows the user to choose drop in replacements
166+
# for docker, such as podman-docker
167+
echo "Docker is already installed, skip docker reinstall."
168+
return 0
169+
fi
170+
163171
# Add Docker's official GPG key:
164172
install -m 0755 -d /etc/apt/keyrings
165173
curl -fsSL https://download.docker.com/linux/ubuntu/gpg \

0 commit comments

Comments
 (0)