Skip to content

Instantly share code, notes, and snippets.

@tuffacton
Created August 19, 2019 03:51
Show Gist options
  • Select an option

  • Save tuffacton/d6923ce5c8df9e1a7810c99090eeab4c to your computer and use it in GitHub Desktop.

Select an option

Save tuffacton/d6923ce5c8df9e1a7810c99090eeab4c to your computer and use it in GitHub Desktop.
Linux tooling on any machine with Docker busybox

Universal Linux Tooling with Docker Busybox

First, get the busybox image

$ docker pull busybox:latest

File manipulation

Attach a volume with files you want to manipulate and perform the manipulations. For example, if you wish to gzip a file:

$ docker run -v $(pwd):/ busybox gzip /<file_in_current_directory>

You can also decompress it by adding the necessary tags:

$ docker run -v $(pwd):/ busybox gzip -d /<file_in_current_directory>.gz

More to Come!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment