Skip to content
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

Use containerd in DIND scenario #150

Merged
merged 1 commit into from
Jun 16, 2024
Merged

Conversation

nmiekley
Copy link
Contributor

@nmiekley nmiekley commented Feb 2, 2024

use containerd instead of docker in DIND scenario

Motivation

Moved from Discussion to Pull Request:

The original idea of the scenario is that docker is running on the worker nodes and managing the containers for kubernetes. However, with kubernetes deprecation for docker shim this is no longer the case. Now, either containerd or cri-o is used as container runtime for kubernetes.

The same exploit can still be done, we only have to use the containerd. I tested it on AWS EKS and kind, but of course for a cluster with cri-o a different socket needs to be mounted.

I am not sure how to name the updated scenario so I am open to suggestion.

Btw, the current setup also has a funny effect in KIND: here the docker daemon you gain control over is the one on your machine running the kind node. You can still get control of the KIND node and the containerd inside, but that is not really a production relevant scenario. This pull request also avoids the special treatment of kind and you now correctly gain control of the daemon in the cluster nodes.

This would probably solve this: #127

Copy link

@st4rtr3ck st4rtr3ck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work. Thanks for the update.

guide/docs/scenarios/images/sc-2-6.png Show resolved Hide resolved
guide/docs/scenarios/images/sc-4-3.png Show resolved Hide resolved
guide/docs/scenarios/scenario-2/scenario-2.md Show resolved Hide resolved
guide/docs/scenarios/scenario-2/scenario-2.md Show resolved Hide resolved
guide/docs/scenarios/scenario-2/scenario-2.md Show resolved Hide resolved
@madhuakula
Copy link
Owner

Thanks for the amazing work @nmiekley @st4rtr3ck 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants