You've already forked runcompose
36 lines
1.3 KiB
Markdown
36 lines
1.3 KiB
Markdown
# 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
|
|
|
|
```bash
|
|
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
|
|
|
|
```bash
|
|
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.
|