Skip to content

convert the 2.1 version docker-compose.yaml error!!!!! #1235

Closed
@hicker-kin

Description

when convert :
kompose convert -f docker-compose.yaml, it is error:
FATA Version 2.1 of Docker Compose is not supported. Please use version 1, 2 or 3 . The follow is my yaml file:

version: '2.1'
services:
registry:
environment:
CONFIG_SERVICE_PASSWORD: $CONFIG_SERVICE_PASSWORD
image: 172.46.5.78:332/library/sqshq/piggymetrics-registry
restart: always
depends_on:
config:
condition: service_healthy
ports:
- 8761:8761
logging:
options:
max-size: "10m"
max-file: "10"

thanks for your answer.

Metadata

Assignees

No one assigned

    Labels

    lifecycle/staleDenotes an issue or PR has remained open with no activity and has become stale.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions