First, get the busybox image
$ docker pull busybox:latest
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