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

Creating a Container with Nfs Client Support #400

Closed
pnookala-px opened this issue Jul 18, 2023 · 9 comments
Closed

Creating a Container with Nfs Client Support #400

pnookala-px opened this issue Jul 18, 2023 · 9 comments
Assignees
Labels
question Further information is requested

Comments

@pnookala-px
Copy link

Hi Team, I am trying to create a Windows Container that has a NFS Client Enabled and my DockerFile reads:

FROM mcr.microsoft.com/windows/server:ltsc2022
RUN powershell.exe Install-WindowsFeature NFS-Client;

Here the installation fails as the command expects the server to be restarted for the changes to take effect. Is there any workaround where we can install the feature without requiring a reboot?

@pnookala-px pnookala-px added the question Further information is requested label Jul 18, 2023
@fady-azmy-msft
Copy link
Contributor

Can you explain what you're trying to achieve with avoiding the reboot? @pnookala-px

@pnookala-px
Copy link
Author

I am trying to a get a docker image with nfs feature enabled. If I reboot at this instance, the docker container that gets created doesn't have nfs enabled. I am all for reboot but the client for nfs should be on by default in the container that I want to use. Please suggest how I can reboot safely so that the feature is enabled.

@microsoft-github-policy-service
Copy link
Contributor

This issue has been open for 30 days with no updates.
no assignees, please provide an update or close this issue.

1 similar comment
@microsoft-github-policy-service
Copy link
Contributor

This issue has been open for 30 days with no updates.
no assignees, please provide an update or close this issue.

@microsoft-github-policy-service
Copy link
Contributor

This issue has been open for 30 days with no updates.
@fady-azmy-msft, please provide an update or close this issue.

@boxoky
Copy link

boxoky commented Oct 2, 2023

Hi @pnookala-px , have you fixed it?

If not, it might help you, have you used SMB to Persistent Storage with Docker/containers in general?

@pnookala-px
Copy link
Author

Hi, I used hostprocess container to mount the nfs file system. Smb also worked but we wanted to limit to nfs, used hpc. It works from k8s version 1.25 onwards.

@boxoky
Copy link

boxoky commented Oct 3, 2023

I'm happy to read it. Thanks to you I found this new feature in Kubernetes. Thank you!

Copy link
Contributor

This issue has been open for 30 days with no updates.
@fady-azmy-msft, please provide an update or close this issue.

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

No branches or pull requests

3 participants