-
Notifications
You must be signed in to change notification settings - Fork 126
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.py: allow docker versions beginning with 'v' #76
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's an interesting finding! For me, that command gives the version without a leading v
(20.10.0
and 20.10.2
). I don't have 20.10.1 installed somewhere, maybe it just happens there?
In any case, could you please add a changelog fragment?
I added the changelog fragment as requested. About this mysterious 'v', maybe is it caused by the fact that the dockerd packaged by my linux distribution is built from moby and is not the official prebuilt Docker CE ? I don't know |
changelogs/fragments/76-leading-v-support-in-docker-version.yml
Outdated
Show resolved
Hide resolved
Out of curiosity, which distribution is it that you have this problem with? I've checked with both Arch Linux (I think the package is also built from moby: https://github.com/archlinux/svntogit-community/blob/packages/docker/trunk/PKGBUILD) and Debian (using the official docker-ce packages from https://download.docker.com/linux/debian). |
Co-authored-by: Felix Fontein <[email protected]>
It's exherbo where Docker itself is a set composed of theses packages:
Honestly, I'm not an docker expert so I can't tell more... |
@voondo thanks for this fix! I'll probably do a bugfix release of the collection this evening so this gets out ASAP. I've never really looked at how Moby is built, so I can't tell either :) I just dwell through the sources sometimes to try to figure out how something works in the CLI to find out how to achieve the same result with the API resp. Docker SDK for Python... :) |
I don't know why, but here, the docker version output begins with a 'v':
which trigger this error:
SUMMARY
I modified the
_sanitize_version
method to handle this case.ISSUE TYPE
COMPONENT NAME
plugins/connection/docker.py