Skip to content

Commit 6053409

Browse files
committed
fix: Use busybox:musl instead of busybox:latest
Turns out, busybox:latest is not (always) statically linked. In particular, arm64 images.
1 parent 2ac0a0d commit 6053409

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ a debugging "sidecar" container that _feels_ like a `docker exec` session to the
6767
- No extra volumes or copying of debugging tools is needed.
6868
- The debugging tools **_are_** available in the target container.
6969

70-
By default, the `busybox:latest` image is used for the debugger sidecar, but you can override it
70+
By default, the `busybox:musl` (statically compiled) image is used for the debugger sidecar, but you can override it
7171
with the `--image` flag. Combining this with the superpower of Nix and [Nixery](https://nixery.dev/),
7272
you can get all your favorite tools by simply listing them in the image name:
7373

cmd/exec/exec.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515
)
1616

1717
const (
18-
defaultToolkitImage = "docker.io/library/busybox:latest"
18+
defaultToolkitImage = "docker.io/library/busybox:musl"
1919

2020
schemaContainerd = "containerd://"
2121
schemaDocker = "docker://"
@@ -120,7 +120,7 @@ func NewCommand(cli cliutil.CLI) *cobra.Command {
120120
&opts.image,
121121
"image",
122122
defaultToolkitImage,
123-
`Debugging toolkit image (hint: use "busybox" or "nixery.dev/shell/vim/ps/tool3/tool4/...")`,
123+
`Debugging toolkit image (hint: use "busybox:musl" or "nixery.dev/shell/vim/ps/tool3/tool4/...")`,
124124
)
125125
flags.BoolVarP(
126126
&opts.stdin,

0 commit comments

Comments
 (0)