Skip to content

dokku/docker-run-export

docker-run-export

Exports docker run flags to configuration files for Docker Compose, AWS ECS, and HashiCorp Nomad.

Installation

Install with the quick install script:

curl -fsSL https://raw.githubusercontent.com/dokku/docker-run-export/main/install.sh | sh

Or via Homebrew:

brew install dokku/repo/docker-run-export

Or build from source:

make install

See the Getting Started guide for all distribution channels (Debian/Ubuntu packages, binary downloads, etc.).

Once installed, the plugin is available via docker dre.

Usage

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:latest

Change --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:latest

See the command reference for all flags and options.

Documentation

  • 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

License

MIT

About

exports the flags passed to a `docker run` call to a variety of formats

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Sponsor this project

  •  

Packages

 
 
 

Contributors