I have been doing a bit of work on analysing the Docker official library images using the bashbrew tool. If you are an experienced Go developer then perhaps it’s obvious how to get it working but I had some trouble.
Here is a quick introduction to getting the bashbrew tool working.
$ git clone \ https://github.com/docker-library/official-images $ cd official-images $ export GOPATH=$HOME/go $ export PATH=$PATH:$GOPATH/bin $ bashbrew/bashbrew.sh list
Running the list command above, or indeed most of the command supported by bashbrew will attempt to download over three gigabytes of data from the git repositories referenced in the library subdirectory. This can take a long time if you have a slow internet connection but subsequent runs of bashbrew will be considerably faster.
The cache location is by default ~/.cache/bashbrew which is a fact that is useful to know if you need to clear it out to reclaim disk space or if it becomes corrupted.