Files
2023-04-19 18:42:39 +02:00

1.3 KiB

Docker Run to Docker Compose Converter

This project is a web application that converts a docker run command into a Docker Compose configuration file (YAML format). It aims to help users create Docker Compose files from existing docker run commands, simplifying the process of migrating from standalone containers to a more organized and manageable structure using Docker Compose.

Features

  • Supports most common docker run flags
  • Generates a Docker Compose version 3 file
  • Can be used with a simple docker-compose up -d command

Usage

git clone https://git.rznet.fr/razian/runcompose.git
cd runcompose
docker compose up -d
  • Open your web browser and navigate to http://localhost:8080.
  • Paste your docker run command into the input field and click the "Convert" button.
  • Copy the generated Docker Compose configuration and save it as docker-compose.yml in your project directory.

Build

git clone https://git.rznet.fr/razian/runcompose.git
cd runcompose
go build -o runcompose
./runcompose

Limitations

  • Some flags from docker run may not have a direct equivalent in Docker Compose, and they might be ignored during the conversion process.
  • Complex or unconventional docker run commands might not be correctly parsed.