Sign inSign up

rustic/busybox

By rustic

•Updated over 2 years ago

This Docker image allows you to run busybox commands on host that may be missing some utilities.

Image
0

3.0K

rustic/busybox repository overview

⁠Busybox

CircleCI Image Size License

This Docker image allows you to run Busybox commands on a Docker host (or anywhere) that may be missing some utilities. An example use case would be on Fedora CoreOS where you may not want additional packages layered in.

⁠Usage

⁠Basic usage

docker run --rm -v $PWD:/busybox rustic/busybox --help

Or for a system with SELinux (note the :z on the volume)

docker run --rm -v $PWD:/busybox:z rustic/busybox --help

You can specify read only on the volume mount a with :ro or :ro,z on SELinux.

docker run --rm -v $PWD:/busybox:ro,z rustic/busybox sha1sum file.txt

Of course you can skip the volume mount if you don't need to manipulate anything on the host.

docker run --rm rustic/busybox ping -c 4 google.com

⁠Setting a user or group

Keep in mind that the container runs as root by default. Make sure you tell the container to run as a different user if different permissions are needed.

⁠Example

docker run --rm --user $(id -u):$(id -g) -v $PWD:/busybox:z rustic/busybox touch file.txt

or

docker run --rm --user 1001:1001 -v $PWD:/busybox:z rustic/busybox touch file.txt

⁠Building

You may of course build the container yourself

docker build -t busybox .

Tag summary

Content type

Image

Digest

sha256:533c9624a…

Size

3.2 MB

Last updated

over 2 years ago

docker pull rustic/busybox