dokku / docker-run-export

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

docker-run-export

Exports the flags passed to a docker run call to a variety of formats.

This is a work in progress

Building

go build

Formats

  • docker docker-compose.yml 3.7: Docs
  • nomad job.json (planned)
  • kubernetes deployment.yml: Use kompose
  • ecs task-definition.json: Export to docker-compose and then use ECS Contexts

Usage

Warning: not all formats will support all flags. Warnings will be emitted on stderr. Some flags may be validated if they contain units or formatting of some sort, which may result in errors being output as well.

docker-run-export run --dre-project derp --dre-format compose --add-host "somehost:162.242.195.82" --cap-add DERP --cpus 5 --expose 5:5 alpine:latest key echo "hi derp"

Non docker run supported flags:

  • dre-project: the project name
  • dre-format: the format to export as

About

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

License:MIT License


Languages

Language:Go 84.4%Language:Makefile 14.0%Language:Dockerfile 0.9%Language:Shell 0.6%