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

Provide docker containers based on Server Core LTSC 2019 and 2022 #3383

Open
2 tasks done
yodaldevoid opened this issue Jan 15, 2024 · 3 comments
Open
2 tasks done

Provide docker containers based on Server Core LTSC 2019 and 2022 #3383

yodaldevoid opened this issue Jan 15, 2024 · 3 comments

Comments

@yodaldevoid
Copy link

Checklist

  • I have verified this is the correct repository for opening this issue.
  • I have verified no other issues exist related to my request.

Is Your Feature Request Related To A Problem? Please describe.

No response

Describe The Solution. Why is it needed?

Windows containers must match the version of Windows host they are run on when running in process isolation mode. This means that the current Chocolatey Docker container cannot run on all versions of Windows where HyperV isolation is not possible.

To solve this problem, more versions of the Windows container should be distributed. Providing LTSC 2019 and 2022 based containers would cover a significantly larger population of Windows installs.

Additional Context

No response

Related Issues

No response

@pauby
Copy link
Member

pauby commented Jan 16, 2024

@TheCakeIsNaOH as you were involved in the Docker images, can you comment on this? I have a feeling there was a similar issue or comment about this some time ago, but I couldn't find anything when I searched. I do have it in my head that the current image is usable on LTSC 2019 and 2022.

@yodaldevoid
Copy link
Author

I do have it in my head that the current image is usable on LTSC 2019 and 2022.

The current image is usable on LTSC 2019 and 2022 if HyperV isolation is used, but not all setups allow for HyperV isolation.

@TheCakeIsNaOH
Copy link
Member

I do have it in my head that the current image is usable on LTSC 2019 and 2022.

The current image is usable on LTSC 2019 and 2022 if HyperV isolation is used, but not all setups allow for HyperV isolation.

That compatibility matches my understanding. I was not aware that some setups did not allow for Hyper-V isolation, but since there are, then creating images based on these other base images would likely be useful.

As is, this is very easy to do from a public source perspective, just copy-paste the Dockerfile.windows and change the base tag to 2019 and 2022 (or change the tag to a variable and pass in the tag during build). However, the potentially more complex operation would be to build the 2022 image on the internal CI/CD, as then the 2022 image would have to be built on a Server 2022 host OS. Additionally, the CI build scripts (and maybe the Cake script?) would have to be updated to handle multiple Windows images.

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

No branches or pull requests

3 participants