跳转到主要内容

将Docker Compose V2转换为与Rancher兼容的Docker Compose V1

项目描述

将Docker Compose V2 docker-compose.yml 转换为Rancher兼容的Docker Compose V1文件,默认为 docker-compose-v1.yml


  • 安装

pip install compose-to-rancher
  • 您将有一个命令

compose-to-rancher
  • 您只需在包含Docker Compose V2文件 docker-compose.yml 的目录中运行该命令,它将生成一个与Rancher兼容的Docker Compose V1文件 docker-compose-v1.yml

  • 如果您想自定义,可以查看命令帮助

$ compose-to-rancher --help

usage: compose-to-rancher [-h] [-f FILE] [-o OUTPUT]

Convert a docker-compose.yml file version 2 to a docker-compose-v1.yml version
1, compatible with Rancher

optional arguments:
  -h, --help            show this help message and exit
  -f FILE, --file FILE  the input docker-compose.yml file in version 2
                        (default: docker-compose.yml)
  -o OUTPUT, --output OUTPUT
                        the output to write a docker-compose.yml version 1
                        compatible with Rancher (default: docker-
                        compose-v1.yml)

项目详情


下载文件

下载适用于您平台的文件。如果您不确定要选择哪个,请了解更多关于 安装软件包 的信息。

源分发

compose-to-rancher-0.1.0a4.tar.gz (2.8 kB 查看哈希值)

上传于

构建分发

compose_to_rancher-0.1.0a4-py2.py3-none-any.whl (4.7 kB 查看哈希值)

上传于 Python 2 Python 3

支持者