Skip to content

rustic/busybox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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 .

About

Run busybox commands on a docker host that may be missing some utilities.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published