Skip to content

Latest commit

 

History

History
70 lines (47 loc) · 1.49 KB

README.rst

File metadata and controls

70 lines (47 loc) · 1.49 KB

dc2dr

Documentation Status Updates

Convert Docker Compose to Docker Run Commands

Features

Takes a docker-compose file, gives back a list of docker run commands.

The supported docker-compose keys are:

  • build
  • name
  • restart
  • volumes
  • depends_on
  • links
  • ports
  • expose
  • environment
  • command
  • image

Usage

From this dir you can run:

` python -m dc2dr.cli tests/example-compose.yml `

Or from in a python script:

` from dc2dr import parser run_commands = parser.run_commands('path/to/compose.yml') `

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.