Skip to content

Commit

Permalink
fix: Use busybox:musl instead of busybox:latest
Browse files Browse the repository at this point in the history
Turns out, busybox:latest is not (always) statically linked. In particular, arm64 images.
  • Loading branch information
iximiuz committed Jan 22, 2023
1 parent 2ac0a0d commit 6053409
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ a debugging "sidecar" container that _feels_ like a `docker exec` session to the
- No extra volumes or copying of debugging tools is needed.
- The debugging tools **_are_** available in the target container.

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

Expand Down
4 changes: 2 additions & 2 deletions cmd/exec/exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
)

const (
defaultToolkitImage = "docker.io/library/busybox:latest"
defaultToolkitImage = "docker.io/library/busybox:musl"

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

0 comments on commit 6053409

Please sign in to comment.