kompose: Convert version 3.5 of Docker Compose is not supported

I have the following docker-compose.yml:

version: "3.5"

services:

  helloworld:
    image: tutum/hello-world
    ports:
      - 80:80
    networks:
      - helloworld-network

networks:
  helloworld-network:
    name: helloworld-network

Executing docker-compose up i can up my service using the network name feature introduced at version 3.5

With that feature, i can use multiples docker-compose.yml and allow them to connect to each other using a specific network name

My idea is to use kompose convert -f docker-compose.yml and allow to generate the k8s ignoring the networks as it already does (not supported - and it is what i expect). But instead, it is given the following error: Version 3.5 of Docker Compose is not supported. Please use version 1, 2 or 3

I guess it is time to update to allow a greater version of compose spec.

FYI: Even changing the version at docker-compose.yml to 3, the error kompose convert gives is: Additional property name is not allowed. But allowing use as version 3 is not a solution since docker-compose up doesn’t work unless is 3.5.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 2
  • Comments: 26 (7 by maintainers)

Most upvoted comments

@jvitor83 We not still working on support the miner versions of compose. After the full research about what added in version 3.4 and 3.5, we will add support for 3.5

We’re up to 3.7 now. Any way I can help?

any ETA on this? would love to convert a 3.5+ compose file.

I have downloaded from https://github.com/kubernetes/kompose and tried with same version you mentioned too… And I am sure I don’t have any deprecated specs as its very light weight compose.

This is my docker version: Docker version 19.03.13, build 4484c46d9d Docker-compose: docker-compose version 1.27.4, build 40524192

Please let me know if am missing anything still…

Regards Jayaram

@Jayaram059 Can you try the master build?

When can we expect this to be fixed ?

[root@lvndev021838 devopsautomation]# kompose convert FATA Version 3.8 of Docker Compose is not supported. Please use version 1, 2 or 3 [root@lvndev021838 devopsautomation]# cat docker-compose.yml #This Docker compose is written by Jayaram version: “3.8” services: axatenantusage: build: ‘./axatenantusage’ image: ${REGISTRY_HOST}/doi/jt653669/axatenantusage doitenantusage: build: ‘./doitenantusage’ image: ${REGISTRY_HOST}/doi/jt653669/doitenantusage gcp-prod-tenant-mapping: build: ‘./gcp-prod-tenant-mapping’ image: ${REGISTRY_HOST}/doi/jt653669/gcp-prod-tenant-mapping