Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions cmd/docker.lima
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ elif [ "$(limactl ls -f '{{ .Status }}' "$LIMA_INSTANCE" 2>/dev/null)" != "Runni
exit 1
fi
DOCKER=$(command -v "$DOCKER" || true)
if [ -n "$DOCKER" ]; then
[ "$(readlink -f -- "$DOCKER")" = "$(readlink -f -- "$0")" ] && DOCKER=""
fi
if [ -n "$DOCKER" ]; then
DOCKER_HOST=$(limactl list "$LIMA_INSTANCE" --format 'unix://{{.Dir}}/sock/docker.sock')
export DOCKER_HOST
Expand Down
3 changes: 3 additions & 0 deletions cmd/kubectl.lima
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ elif [ "$(limactl ls -f '{{ .Status }}' "$LIMA_INSTANCE" 2>/dev/null)" != "Runni
exit 1
fi
KUBECTL=$(command -v "$KUBECTL" || true)
if [ -n "$KUBECTL" ]; then
[ "$(readlink -f -- "$KUBECTL")" = "$(readlink -f -- "$0")" ] && KUBECTL=""
fi
if [ -n "$KUBECTL" ]; then
KUBECONFIG=$(limactl list "$LIMA_INSTANCE" --format '{{.Dir}}/copied-from-guest/kubeconfig.yaml')
export KUBECONFIG
Expand Down
3 changes: 3 additions & 0 deletions cmd/podman.lima
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ elif [ "$(limactl ls -f '{{ .Status }}' "$LIMA_INSTANCE" 2>/dev/null)" != "Runni
exit 1
fi
PODMAN=$(command -v "$PODMAN" || true)
if [ -n "$PODMAN" ]; then
[ "$(readlink -f -- "$PODMAN")" = "$(readlink -f -- "$0")" ] && PODMAN=""
fi
if [ -n "$PODMAN" ]; then
CONTAINER_HOST=$(limactl list "$LIMA_INSTANCE" --format 'unix://{{.Dir}}/sock/podman.sock')
export CONTAINER_HOST
Expand Down
Loading