Building A Binwalk Docker Image - ReFirmLabs/binwalk GitHub Wiki

[!NOTE] The following assumes you are running an Ubuntu, or similar, operating system.

The sudo apt commands may be different depending on your system.

Step 1

Install docker:

sudo apt install docker.io

Step 2

Download binwalk:

sudo apt install git
git clone https://github.com/ReFirmLabs/binwalk

Step 3

Build the docker image:

cd binwalk
sudo ./build_docker.sh

Step 4

Run the binwalkv3 docker container:

sudo docker run -t -v "$PWD":/analysis binwalkv3 -Me firmware.bin

[!NOTE] The default working directory inside the docker container is /analysis.

[!TIP] The default user ID of the docker container is 1000; if you wish to run with a different user ID (e.g., 1001):

sudo docker run -t -v "$PWD":/analysis -u 1001 binwalkv3 -Me firmware.bin