-
Notifications
You must be signed in to change notification settings - Fork 43
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 helper: version not being obtained #359
Comments
I can confirm for debian - we had the same issue, which forced me to upgrade to a newer docker version. In case that this is wanted behaviour due to end of life of the old docker version: we might want to adjust the documentation: https://inveniordm.docs.cern.ch/install/requirements/ |
EDIT: There are in fact two problems: the first one (described below) is related with obtaining the version of Docker. The second one is about obtaining the version of Docker Compose failing on environments where the command is I am using Docker This is due to the fact that the command used in the $ docker version --format json
json The official Docker documentation mentions the value However, the best solution in our case which works will all versions would be to follow the examples on how to extract specific information, which is a much simpler since it does not require any JSON parsing: $ docker version --format '{{.Client.Version}}'
20.10.22 I can create a pull request with this change if you want. |
@ptamarit Thanks for looking into this. We love PR's... |
Hi all, is there anything new on this issue? Currently users are running into this, see: https://invenio-talk.web.cern.ch/t/installation-error-of-invenio-rdm-in-local-machine-please-solve/351. In my case, I ran into the second error mentioned by @ptamarit. So I just changed the code in But this is clearly not a good workaround for all systems. |
Package version (if known): 1.1.0
Describe the bug
With docker 20.10 / docker-compose 1.25.0 (ubuntu 20.04) the docker helper is trying to run 'docker compose' but this command isn't available. It should still be docker-compose in this case.
This causes docker not to be able to start services etc when the helper fails here:
invenio-cli/invenio_cli/helpers/docker_helper.py
Line 41 in 4057302
Steps to Reproduce
Bootstrap instance with Docker 20.10 (as packaged in Ubuntu 20.04), bootstrap an instance of ~12 and try to start services.
Expected behavior
services should start
Screenshots (if applicable)
Additional context
The text was updated successfully, but these errors were encountered: