Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working anymore? #10

Closed
SuperSpe opened this issue Dec 3, 2019 · 10 comments
Closed

Not working anymore? #10

SuperSpe opened this issue Dec 3, 2019 · 10 comments

Comments

@SuperSpe
Copy link

SuperSpe commented Dec 3, 2019

ERROR: The Compose file './docker-compose.yaml' is invalid because:
services.nginx.networks.bridge contains null, which is an invalid type, it should be an array
services.portainer.networks.bridge contains null, which is an invalid type, it should be an array
services.grafana.labels.com.docker.compose.oneoff contains false, which is an invalid type, it should be a string, number,
or a null
services.influxdb.labels.com.docker.compose.oneoff contains false, which is an invalid type, it should be a string, number,
  nginx:
    networks:
      bridge:
        aliases:

Docker version 18.09.7, build 2d0083d

@jisakiel
Copy link

  • I think it's emitting v2 files instead of v3? (at least my synology docker install complains about things like cpu_shares unless I edit that bit)
  • I think it's mistaking the default bridge with a bridge. Meaning if I edit the yaml, and switch networks: bridge: for network_mode: bridge it works again.

@PonyOny
Copy link

PonyOny commented Mar 3, 2020

Same here getting this output error.
services.web-server-test.networks.bridge contains null, which is an invalid type, it should be an array
and is caused due to.

networks:
  bridge:
    external: true

@Hukuma1
Copy link

Hukuma1 commented Mar 7, 2021

Any fix for this besides manual editing? Seeing exactly the same 1 full year later. :/

Same here getting this output error.
services.web-server-test.networks.bridge contains null, which is an invalid type, it should be an array
and is caused due to.

networks:
  bridge:
    external: true

@Red5d
Copy link
Owner

Red5d commented Mar 8, 2021

Thanks for the reminder, somehow I thought I'd resolved this. I'll try and sort this out today.

@akshaysalunke13
Copy link
Contributor

@Red5d I've opened a PR solving this issue. Please have a look.

@Red5d
Copy link
Owner

Red5d commented Mar 15, 2021

Thanks! Merged.

@Hukuma1
Copy link

Hukuma1 commented Mar 19, 2021

Trying to do a Jellyfin container export/import and running into it complaining about this:

    devices:
      - CgroupPermissions: rwm
        PathInContainer: /dev/dri
        PathOnHost: /dev/dri

Log:

Deployment error
The Compose file '/data/compose/51/docker-compose.yml' is invalid because: services.Jellyfin2.devices contains an invalid type, it should be a string

Any idea? This is strictly the code I am using from a running container and then re-importing it (with different container name) to launch a stack.

@Red5d
Copy link
Owner

Red5d commented Mar 19, 2021

Hmm... that should definitely be formatted like this instead according to the compose file documentation:

devices:
  - /dev/dri:/dev/dri

I'll check and see if the "devices" section is different than others in the JSON or something.
https://docs.docker.com/compose/compose-file/compose-file-v3/#devices

@Hukuma1
Copy link

Hukuma1 commented Jul 15, 2021

Any updates? It still says it. :/ Obviously can manually edit it for now, but others might not understand the failure if they run it.

@Red5d
Copy link
Owner

Red5d commented Jul 29, 2021

I've fixed the formatting on devices entries.

@Red5d Red5d closed this as completed Jul 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants