composerize/composerize

ERROR: Version in "./docker-compose.yml" is invalid - it should be a string.

davidmankin opened this issue · 5 comments

Do you want to request a feature or report a bug?

Bug

Please provide a sample input docker run command

docker run --init --rm -d -e foo=bar container:latest

What is the current output?*

version: 3
services:
    container:
        environment:
            - foo=bar
        image: 'container:latest'

What is the expected/desired output?

version: "3"
services:
    container:
        environment:
            - foo=bar
        image: 'container:latest'

The version should be a string. docker-compose tells me:

ERROR: Version in "./docker-compose.yml" is invalid - it should be a string.

This, I have a feeling this project is abandoned, but ill see if i can make a PR.

Huh, apparently 3f37b35 should have fixed it but it not fixed on the website.

Apologies, it's taken me a few weekends to get round to giving this project some love. Fixed the package deployment in this repo, we're now on the latest version on the website.

https://composerize.com/

@magicmark had this happen again today

Please correct the below line , it should be :
version: '3'