-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Can't find docker-compose version, when docker-compose is instaleld #24191
Comments
The check seems to be outdated. We currently require Compose file v3.
|
@drfred1981 IFAIK See:
I don't know how this works or if |
@mshima if it "docker compose" must be used as it, i suggest, to add a complementary check based on the required version of docker here is my client docker version installer on Ubuntu 22.04.3 LTS try to help
|
@drfred1981 Since we use |
|
Overview of the issue
When running jhispter docker-compose command, version 8.0.0rc1 and above.
getting this error :
INFO! Docker is installed
ERROR! Docker Compose 1.6.0 or later is not installed on your computer.
ERROR! An error occured while running jhipster:docker-compose#checkDockerCompose
ERROR! ERROR! Cannot read properties of undefined (reading 'replace')
TypeError: Cannot read properties of undefined (reading 'replace')
Motivation for or Use Case
I've have installed docker-compose, with apt and also wia command line, same bug appeared
Reproduce the error
run :
jhispter docker-compose on a jhipster project
Related issues
Suggest a Fix
Edit :
generators/docker-compose/generator.mjs
At line 69
replace :
const { stdout, exitCode } = await this.spawnCommand('docker compose version', { reject: false, stdio: 'pipe' });
by
const { stdout, exitCode } = await this.spawnCommand('docker-compose version', { reject: false, stdio: 'pipe' });
JHipster Version(s)
JHipster configuration
8.0.0rc1 and above (ive not tried on v 7 and above
Entity configuration(s)
entityName.json
files generated in the.jhipster
directoryIs not impacted by entities
Browsers and Operating System
ubuntu
The text was updated successfully, but these errors were encountered: