Skip to content

Commit 7c21145

Browse files
authored
Merge pull request #2319 from Pinata-Consulting/dependency-installer-no-docker-overwrite
dependencyinstaller: do not reinstall docker if it is installed
2 parents 7888641 + 0ee8d99 commit 7c21145

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)