Generate docker run commands from running containers to recreate them.
docker-replay is a Python CLI tool that generates the exact `docker run` command required to recreate a running Docker container. It solves the problem of losing or forgetting the complex launch parameters of a container by reverse-engineering them from the live instance.
DevOps engineers, system administrators, and developers who work extensively with Docker containers and need to audit, document, or debug container configurations.
It provides a quick, accurate way to capture and reproduce container setups without manual reconstruction, saving time and reducing errors in container management workflows.
Generate docker commands to rerun existing containers
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Generates exact docker run commands with all options, such as environment variables, mounts, and resource limits, as demonstrated in the README output including --memory and --expose flags.
Can be installed via pip or run as a Docker container with minimal setup, shown in the quickstart example using docker run with the official image.
Provides transparency by capturing complex container launches, aiding in debugging startup issues and creating reproducible scripts, aligning with its philosophy of clarity.
Connects to the Docker daemon via socket to access live container data, ensuring the output reflects the current running state accurately.
Only works with actively running containers, making it ineffective for analyzing images or stopped instances without restarting them first.
Needs access to the Docker socket (/var/run/docker.sock), which can expose the host system to privilege escalation if not properly secured, as highlighted in the quickstart.
Does not support generating Docker Compose files or handling multi-container setups, focusing solely on docker run for individual containers.