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

extra_mounts: Support docker --mount parameter in addition to current --volume #3470

Open
an-dr-eas-k opened this issue Jan 5, 2024 · 2 comments
Labels
kind/feature Categorizes issue or PR as related to a new feature.

Comments

@an-dr-eas-k
Copy link

What would you like to be added:
currently the configuration for the extra_mounts config structure is translated in the docker argument --volume with syntax --volume=host_path:container_path. I followed the guide here https://kind.sigs.k8s.io/docs/user/local-registry/ and wanted to terraform the process. I am now stuck at the point to dynamically mount my local config dir to the container directory with name /etc/containerd/certs.d/localhost:5001/. The colon in the directory name cannot be mapped with the --volume argument.

I suggest an additional extra_mounts structure that is translated to the --mount parameter of docker.

Why is this needed:
Doing so would allow colons in directory names.

@an-dr-eas-k an-dr-eas-k added the kind/feature Categorizes issue or PR as related to a new feature. label Jan 5, 2024
@BenTheElder
Copy link
Member

xref: #1966

This is probably happening in some future API revision, subject to bandwidth.

FWIW I recommend mounting the whole [..]certs.d/

@an-dr-eas-k
Copy link
Author

thanks, that helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature.
Projects
None yet
Development

No branches or pull requests

2 participants