radare2/dist/docker
2023-12-27 20:32:40 +01:00
..
fuzz-asm Don't use /dev/stderr ##port 2023-12-06 10:20:14 +01:00
fuzz-cmds Initial import of the assembler fuzzer 2022-06-10 13:56:15 +02:00
Dockerfile Update and improve r2docker as well as publish the new image into the hub ##build 2023-06-05 11:07:51 +02:00
Makefile Disable docker publish 2023-12-27 20:32:40 +01:00
r2-docker.1 Move and update r2docker into dist/docker ##r2pm 2023-04-26 00:59:14 +02:00
r2docker.sh Move and update r2docker into dist/docker ##r2pm 2023-04-26 00:59:14 +02:00
README.md Update docker dist README 2023-12-27 20:32:40 +01:00

radare2 docker image

Official stable version

The prebuild docker image for the stable version is based on Ubuntu and the radare2 snap build. The Dockerfile to build can be found in this dedicated repository. Any issue found in this packaging can be opened there.

The resulting build only includes the following plugins by default:

Run

To use the prebuild docker image you can use either:

docker run -ti radare/radare2
podman run -ti docker.io/radare/radare2
nerdctl run -ti radare/radare2

To use the prebuild docker image as one shot so it removes everything inside the container on exit just add --rm as follows:

docker run --rm -ti radare/radare2

Another example to use for debugging inside the docker:

docker run --tty --interactive --privileged --cap-add=SYS_PTRACE --security-opt seccomp=unconfined --security-opt apparmor=unconfined radare/radare2

GIT version (r2docker)

Alternatively there is a version with radare2 GIT aimed to be build locally.

This will build an image using Debian with radare2 from git with latest changes. The Dockerfile to build can be found inside this folder (dist/docker directory inside the radare2 source tree).

Build from GIT

To build this other image run the following lines:

git clone https://github.com/radareorg/radare2.git
cd radare2
make -C dist/docker

This will build an image with the following plugins:

It is possible to specify more packages using the R2PM make variable:

make -C dist/docker R2PM=radius2

Also, you can select the architecture (amd64 / arm64) to compile the image by using the ARCH make variable.