-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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] add support for cri-dockerd as a replacement for dockershim #8623
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cristicalin 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 |
7def886
to
aad3ba2
Compare
cf369bb
to
d9b889f
Compare
800576d
to
2d4c6eb
Compare
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.
Nice work, just some questions.
@@ -15,3 +15,4 @@ enable_nodelocaldns: False | |||
container_manager: docker | |||
etcd_deployment_type: docker | |||
resolvconf_mode: docker_dns | |||
cri_dockerd_enabled: true |
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.
Nice testing
@@ -102,7 +102,6 @@ ENV/ | |||
|
|||
# molecule | |||
roles/**/molecule/**/__pycache__/ | |||
roles/**/molecule/**/*.conf |
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.
Why do we need to remove this line?
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.
I needed to add a cni definition file which has the *.conf extension, 10-mynet.conf
and this was prevented by this .gitignore rule. It's not clear to me why this was added in the first place since *.conf
files are valid objects in molecule tests and we already have a few for other tests such as the kata-containers
and gvisor
molecule tests.
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.
I checked the pull request #8080 which added the above line.
But I cannot find the reason.
It is fine to remove it for me.
/lgtm
Using `cri-dockerd` instead of `dockershim`: | ||
|
||
```yaml | ||
cri_dockerd_enabled: false |
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.
How about adding
container_manager: docker
to understand what are necessary easily?
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.
I updated the docs in the latest push.
What type of PR is this?
/kind feature
What this PR does / why we need it:
With the coming release of kubernetes 1.24, the support for dockershim will be removed. This PR adds experimental support for using the Mirantis
cri-dockerd
as an alternative to thedockershim
.Additionally, this PR adds some docs for the
docker
runtime which were missing from out public docs.Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?: