-
Notifications
You must be signed in to change notification settings - Fork 40.2k
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
Docker Compose support doesn't work with Docker Compose 2.25.0 #40060
Comments
well, it appears that
After reverting to previous Furthermore, I now have proper Json docker-compose --file docker-compose.yml --ansi never config --format=json
{
"name": "dev-calendar",
"networks": {
"default": {
"name": "dev-calendar_default"
}
},
"services": {
"database": {
"environment": [
"POSTGRES_USER=myuser",
"POSTGRES_DB=mydatabase",
"POSTGRES_PASSWORD=secret"
],
"image": "postgres:15.2",
"networks": {
"default": null
},
"ports": [
{
"mode": "ingress",
"protocol": "tcp",
"published": "15432",
"target": 5432
}
]
},
"pgadmin": {
"environment": {
"PGADMIN_DEFAULT_EMAIL": "myuser@domain-name.com",
"PGADMIN_DEFAULT_PASSWORD": "secret"
},
"image": "dpage/pgadmin4",
"networks": {
"default": null
},
"ports": [
{
"mode": "ingress",
"protocol": "tcp",
"published": "8888",
"target": 80
}
]
}
}
}
|
Thanks for the report. We have to add support for docker compose 2.25.0. |
Looks like a bug in Docker Compose. Let's see what the Docker Compose team says. |
I saw someone else with this problem on Mastodon from where I learned that it should be fixed by this PR. |
How did I overlook that in my search ?? Thanks Andy, i've closed my issue as a dupe. The PR is already merged, so we need to wait for the next docker compose release. Nothing we can do here. If you're affected, the workaround is to not use Docker Compose 2.25.0. 2.24.0 works fine. |
Docker Compose 2.26.0 has been released, which should fix that bug. |
I confirm! I just tested it out, it is fixed! |
@anthonydahanne I have docker 26.0 but still facing this issue. Is that your docker version, too? |
The docker version doesn't matter. Run |
I had this issue on Kubuntu 22.04.4 LTS. |
Thanks @mhalbritter - will check. It seems the v2.26.0 is not yet available on the Ubuntu apt package manager. |
Yes installing docker-compose-linux-x86_64 on my Ubuntu worked solved my "Failed to parse docker JSON" problem for my Spring-Boot 3 application |
Hello,
Using
developmentOnly("org.springframework.boot:spring-boot-docker-compose")
with SB 3.3.0-M2 (could reproduce with 3.2.4 too), when I'm starting my app, it fails with:while mydocker-compose.yml
does NOT start withDigging further, I had a look at what Spring Boot Docker Compose did, and it ran:
which DOES indeed prepend thedocker-compose.yml
with:which returns the non json following document:
It used to work, but without touching it nor changing version it stopped working 🧐 - that said I ran
brew upgrade
recently.Thanks!
The text was updated successfully, but these errors were encountered: