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

Compose file '/docker-compose' invalid because 'devices' was unexpected #5

Closed
alexanderdutton opened this issue Aug 24, 2022 · 5 comments

Comments

@alexanderdutton
Copy link

I'm fumbling through my WSL2/docker setup.

I think I've got everything right with the GPU, as it detects, but when I get to docker-compose up, it is throwing this:

ERROR: The Compose file './docker-compose.yml' is invalid because:
services.stability-ai.deploy.resources.reservations value Additional properties are not allowed ('devices' was unexpected)

Thanks for your work and help!

@HVRyan
Copy link

HVRyan commented Aug 25, 2022

I'm fumbling through my WSL2/docker setup.

I think I've got everything right with the GPU, as it detects, but when I get to docker-compose up, it is throwing this:

ERROR: The Compose file './docker-compose.yml' is invalid because:
services.stability-ai.deploy.resources.reservations value Additional properties are not allowed ('devices' was unexpected)

Thanks for your work and help!

Check the version:

docker-compose --version

I had to move up past 1.28

$ docker-compose --version
Docker Compose version v2.6.0

@alexanderdutton
Copy link
Author

Thanks for this, HVRyan .. I think the issue might have been that I had a copy of docker compose as well as docker-compose, and while I was updating the one, I was running the other.

I'd mixed my system up by incorrectly installing Desktop Docker first, and didn't do a good enough job of cleaning up -- in case that helps anyone else.

@cmdr2
Copy link
Collaborator

cmdr2 commented Aug 25, 2022

Thanks @alexanderdutton and @HVRyan . I've added a clarification for this on the README, and warned people to not install Desktop Docker for Windows. I've also added a troubleshooting section, and included this error and solution.

@alexanderdutton Hope your setup is working now!

@alexanderdutton
Copy link
Author

So many astronauts on horses!

Thanks, @cmdr2 !

@cmdr2
Copy link
Collaborator

cmdr2 commented Aug 25, 2022

:)

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

3 participants