-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
support ancient versions of docker again (template parsing issue) #10369
support ancient versions of docker again (template parsing issue) #10369
Conversation
Hi @prezha. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Can one of the admins verify this patch? |
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.
since this PR adds support for ancient docker versions, lets remove the Exit that we used to do for old docker versions...now we can only Warn the user and say Needs imporvement...
Reason: "PROVIDER_DOCKER_VERSION_LOW",
Error: oci.ErrMinDockerVersion,
Installed: true,
Healthy: false,
NeedsImprovement: true,
Fix: fmt.Sprintf("Upgrade %s to a newer version (Minimum supproted version is %2d.%2d.%d)", driver.FullName(driver.Docker), minDockerVersion[0], minDockerVersion[1], minDockerVersion[2]),
Doc: docURL + "#requirements"}
change to not return error but instead return needs imporvement
Installed: true,
Healthy: true,
NeedsImprovement: true,
Fix: fmt.Sprintf("Upgrade %s to a newer version (Minimum supproted version is %2d.%2d.%d)", driver.FullName(driver.Docker), minDockerVersion[0], minDockerVersion[1], minDockerVersion[2]),
Doc: docURL + "#requirements"}
@medyagh i've removed the exit for ancient docker versions and confirmed it working (basic testing only) with the last version still available on github:
also checked with v18:
note: i managed to get it working with the last version still available to download as well: minikube/pkg/minikube/command/kic_runner.go Line 262 in 9d091e6
i haven't made that change into my last pr as we probably do not want/need to go that far back... |
I don't think we need to support Docker 17.xx or earlier, only OS that I know of that has that is CentOS 7 (1.13.1). And we don't want to support that, if you want to run CentOS you need to install a newer version from vendor: https://docs.docker.com/engine/install/centos/ For Ubuntu, the oldest that we need to support is 18.09.7: https://packages.ubuntu.com/search?keywords=docker.io |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: medyagh, prezha The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/ok-to-test |
NeedsImprovement: true, | ||
Fix: fmt.Sprintf("Upgrade %s to a newer version (Minimum supproted version is %2d.%2d.%d)", driver.FullName(driver.Docker), minDockerVersion[0], minDockerVersion[1], minDockerVersion[2]), | ||
Fix: fmt.Sprintf("Upgrade %s to a newer version (Minimum supproted version is %2d.%02d.%d)", driver.FullName(driver.Docker), minDockerVersion[0], minDockerVersion[1], minDockerVersion[2]), |
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.
nit: we could improve the wording for this
and say min recommended docker version is,
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.
done!
thank you for review medya
kvm2 Driver |
kvm2 Driver Times for Minikube (PR 10369): 66.7s 65.3s 65.7s Averages Time Per Log
docker Driver Times for Minikube (PR 10369): 24.7s 24.1s 24.9s Averages Time Per Log
|
fixes #10362
as described in the original issue/comments, this pr changes the go template used to parse
docker network inspect --format
by avoiding the operator=
that was introduced in go 1.11 (ref: https://golang.org/doc/go1.11#text/template) - to support older docker versions (eg, docker v18.09.7 uses go v1.10.8)also, this pr fixes the error:
Exiting due to PROVIDER_DOCKER_NOT_RUNNING: docker version: strconv.Atoi: parsing "7\n": invalid syntax
in checkDockerVersion() while parsing the docker version - current master/main branch
before:
after:
confirmed working with newer versions: