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

Question: Getting error about docker-compose version mismatch, any ideas? #32

Closed
neilwheeler opened this issue May 15, 2022 · 4 comments · Fixed by #40
Closed

Question: Getting error about docker-compose version mismatch, any ideas? #32

neilwheeler opened this issue May 15, 2022 · 4 comments · Fixed by #40
Labels

Comments

@neilwheeler
Copy link

When running ./run-seedbox.sh I'm getting this error

ERROR: Version mismatch: file ./docker-compose.yaml specifies version 3.8 but extension file ./services/traefik.yaml uses version 1

Any ideas what might be the cause?

@jfroment
Copy link
Owner

Hello,

What version of docker-compose are you running? Does it meet the >= 2.2 criteria?
If not, I invite you to update your system package or use a direct installation using the binary from here: https://github.com/docker/compose/releases

@jfroment jfroment added the needs-info Needs information label May 17, 2022
@neilwheeler
Copy link
Author

Yes I had the latest v2 version installed. The thing that's confusing me is that the documentation for compose v2 states that the command is docker compose as opposed to docker-compose in v1. But your run_seedbox.sh script uses docker-compose.
I must be missing something here but I don't know what!

@FlyingKawasaki74
Copy link

Yes I had the latest v2 version installed. The thing that's confusing me is that the documentation for compose v2 states that the command is docker compose as opposed to docker-compose in v1. But your run_seedbox.sh script uses docker-compose. I must be missing something here but I don't know what!

Can confirm, I also had the problem that docker-compose which is used in run-seedbox.sh was not recognized.
Environment is Ubuntu 22, I set up the newer versions of Docker and Docker Compose according to https://docs.docker.com/engine/install/ubuntu/
I solved this by renaming the two occurences in run-seedbox.sh

@jfroment
Copy link
Owner

I think I understood it. Personally I installed docker compose v2 (latest) not by using a package manager but directly on github (grabbed the binary directly), and named it "docker-compose" in /usr/local/bin. I named it out of habit, and then developed my scripts around it.
So my bad, I name it differently. I will add an option in the script to make it variable, so everyone would get the possibility to use its own version and/or name.

@jfroment jfroment added planned and removed needs-info Needs information labels Sep 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants