Skip to content

Commit 62ca0bb

Browse files
authored
Merge pull request #4432 from Kim-Yukyung/fix/4428
fix: make nerdctl.lima respect LIMA_INSTANCE
2 parents 88173f0 + 1cd6dd6 commit 62ca0bb

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

cmd/nerdctl.lima

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
#!/bin/sh
22
set -eu
3+
4+
# Environment Variables
5+
# LIMA_INSTANCE: Specifies the name of the Lima instance to use. Default is "default".
6+
7+
: "${LIMA_INSTANCE:=default}"
8+
39
# Use --preserve-env to pass through environment variables from host machine into guest instance
4-
exec limactl shell --preserve-env default nerdctl "$@"
10+
exec limactl shell --preserve-env "$LIMA_INSTANCE" nerdctl "$@"

0 commit comments

Comments
 (0)