Exports docker run flags to configuration files for Docker Compose, AWS ECS, and HashiCorp Nomad.
Install with the quick install script:
curl -fsSL https://raw.githubusercontent.com/dokku/docker-run-export/main/install.sh | shOr via Homebrew:
brew install dokku/repo/docker-run-exportOr build from source:
make installSee the Getting Started guide for all distribution channels (Debian/Ubuntu packages, binary downloads, etc.).
Once installed, the plugin is available via docker dre.
Export a docker run command to a Compose file:
docker dre run --dre-project myapp --dre-format compose -e FOO=bar -p 8080:80 nginx:latestChange --dre-format to target a different platform:
docker dre run --dre-project myapp --dre-format ecs -p 8080:80 nginx:latest
docker dre run --dre-project myapp --dre-format nomad -p 8080:80 nginx:latestSee the command reference for all flags and options.
- Getting Started -- why docker-run-export, installation, and your first export
- Command Reference -- all DRE flags, supported docker run flags, and output formats
- Compose -- exporting to docker-compose.yml
- ECS -- exporting to ECS task definitions and CloudFormation templates
- Nomad -- exporting to Nomad job specifications in HCL and JSON
- Docker CLI Plugin -- using docker-run-export as
docker dre