Comments (12)
I had this issue on Kubuntu 22.04.4 LTS.
For me it turned out that I had docker-compose-plugin
installed. This seems to make spring boot use docker
's compose
subcommand instead of executing docker-compose
command directly (which is generally ok, except in this case).
After uninstalling docker-compose-plugin
and downloading docker-compose 2.26.0 my SpringBoot app is able to start and services defined in compose.yml
start fine.
from spring-boot.
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.
from spring-boot.
Docker Compose 2.26.0 has been released, which should fix that bug.
from spring-boot.
I confirm! I just tested it out, it is fixed!
from spring-boot.
well, it appears that docker-compose
2.25.0 changed a lot; in particular:
[Update](https://docs.docker.com/compose/release-notes/#update)
Dependencies upgrade: bump compose-go v2.0.0
After reverting to previous docker-compose
, version 2.24.7, using this trick and the file at https://raw.githubusercontent.com/Homebrew/homebrew-core/65be7dffbc1ff28f4435d7b39411c457b3a975fd/Formula/d/docker-compose.rb , it worked again.
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": "[email protected]",
"PGADMIN_DEFAULT_PASSWORD": "secret"
},
"image": "dpage/pgadmin4",
"networks": {
"default": null
},
"ports": [
{
"mode": "ingress",
"protocol": "tcp",
"published": "8888",
"target": 80
}
]
}
}
}
from spring-boot.
Thanks for the report. We have to add support for docker compose 2.25.0.
from spring-boot.
Looks like a bug in Docker Compose. Let's see what the Docker Compose team says.
from spring-boot.
I saw someone else with this problem on Mastodon from where I learned that it should be fixed by this PR.
from spring-boot.
@anthonydahanne I have docker 26.0 but still facing this issue. Is that your docker version, too?
from spring-boot.
The docker version doesn't matter. Run docker compose version
to see your Docker Compose version. If it says v2.25.0
, you're still using the bugged version.
from spring-boot.
Thanks @mhalbritter - will check. It seems the v2.26.0 is not yet available on the Ubuntu apt package manager.
from spring-boot.
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
from spring-boot.
Related Issues (20)
- build native image using Paketo Buildpack for Bellsoft Liberica 10.7.0 (which has JDK 22 support) instead of current 10.5.5 HOT 1
- How to manually create a ConversionService bean with the same converters and formatters in a none web application as the auto created bean in web application. HOT 3
- Unlike DataSourceAutoConfiguration, DevToolsDataSourceAutoConfiguration assumes that javax.sql.DataSource will always be available
- Unlike DataSourceAutoConfiguration, DevToolsDataSourceAutoConfiguration assumes that javax.sql.DataSource will always be available
- Set artifact properties on the docs zip when releasing
- Move steps for preparing a Gradle build into a reusable action
- Move steps for preparing a Gradle build into a reusable action
- Move steps for preparing a Gradle build into a reusable action
- Run system tests on GitHub Actions
- Run system tests on GitHub Actions
- Run system tests on GitHub Actions
- Native image doesn't start and doesn't log anything if an environment post processor throws an exception
- Native image doesn't start and doesn't log anything if an environment post processor throws an exception
- TestRestTemplate equivalent class for RestClient HOT 1
- improve jwt error message HOT 1
- Problem during test of MockMVC functional Handler and SSEEmitter with infinite number of values
- Demo application exits immediately on Ubuntu 22 (WSL) HOT 1
- Jartools extract command doesn't extract all files from META-INF
- Spring cloud flavour WebClient is throwing exception when a GetMapping is done. HOT 3
- Server Compression size limit not honored for server.compression.min-response-size configuration HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spring-boot.