From ebf37d245954c0bdfb2516e0a3342fc22e39ddd6 Mon Sep 17 00:00:00 2001 From: Felipe Santos Date: Tue, 24 Dec 2024 18:46:54 -0300 Subject: [PATCH] Add support for renaming dond to docker.orig Useful in case there is more than one docker wrapper, so that you can name your original docker binary to docker.orig2, dond to docker.orig, and then your wrapper as docker. --- dond | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dond b/dond index 873f93e..da24bc1 100755 --- a/dond +++ b/dond @@ -235,6 +235,10 @@ elif [[ "${0}" == *"/docker" ]]; then # If this shim is named docker, then we expect the original docker to be # named docker.orig readonly docker_path="docker.orig" +elif [[ "${0}" == *"/docker.orig" ]]; then + # If this shim is named docker.orig, then we expect the original docker to be + # named docker.orig2 + readonly docker_path="docker.orig2" else # If this shim is not named docker, then we can simply call docker readonly docker_path="docker"