Skip to content

Commit

Permalink
Add support for renaming dond to docker.orig
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
felipecrs committed Dec 24, 2024
1 parent cee4f20 commit ebf37d2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dond
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit ebf37d2

Please sign in to comment.