This Docker image provides a containerized environment equipped with tools (mdadm
and parted
) to assist in RAID recovery efforts.
Using this Docker image can help you run mdadm
on Unraid servers or other custom linux servers without having to install any specific packages on your machine.
- Docker
- Disk images for each disk in your RAID setup, these can be created using
ddrescue
To use the container:
- Start a container from the image:
docker run -d --privileged --name raid-recovery -v /path/to/images:/images ostlerdev/mdadm:latest
-d
: Runs the container in "detached" mode to keep the container running in the background.--privileged
: Grants the container full capabilities, which are needed to work with devices like loopback and RAID.--name
: Names the containerraid-container
for easier reference.-v /path/to/images:/images
: Mounts your directory (where the RAID images are) to/images
in the container. Replace/path/to/images
with the actual path to your disk images.
- Connect into the container:
docker exec -it raid-recovery /bin/bash
- You now have access to
mdadm
andparted
to aid your recovery efforts.
You can build the image locally with:
docker build -t mdadm:latest .
Or, pull it directly from Docker Hub:
docker pull ostlerdev/mdadm:latest
Contributions are welcome! Please create an issue or submit a pull request on GitHub.