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
Docs should clarify how to add Windows Feature that require server restart to container #155
Comments
Fix Install-ContainerHost issues
This seems to have been a bug in TP4, as Neil Peterson confirmed, but it still exists in TP5 as well. Here is a screencase where the container hangs himself up once trying to add the NetworkController windows feature. Here is a screencast: https://screenrecordings.tinytake.com/sf/NjY5MDI3XzMyMTExMDE How to reproduce it:
Now, this time the call does not hang anymore, but unfortunately the NetworkController is still not installed and the status is back to "Available". |
I'm closing this ticket, since adding the NetworkController is not meant to be added inside the Docker container. See #269 |
@mathiasconradt While adding a NetworkController is not meant to be added inside the Docker container. there are other cases, when we need to restart a container. For example, we can install Docker inside the container, right? But it requires to restart a container, how to do that? |
@MikhailTymchukDX you cannot run the Docker daemon inside a Windows Docker container. |
@friism Yes, because I can not install the Docker module without restart :) The original question remains the same - how to restart a container if any service/windows feature requires a restart? |
you figure it out ? i am trying to install a program that require a reboot ( it's a windows exe ) how i do restart on docker ? the command docker container restart does restart like on windows? same impact? |
I agree with @MikhailTymchukDX, the question remains. If the answer is "it's not possible", can that just be said? Or perhaps, "it's a bug or a new feature that needs to be considered" should be the answer. I'm having the same problem with .NET 4.7 which is needed for a new feature in our application to run and it would be nice to know if we should delay the feature. |
Yep me too. Creating a Windows VSTS build agent as a docker image (MS only provide the Linux one at present), installing Visual Studio 2017 and the some of the workloads using Chocolatey, one of which (netweb I think) causes the docker build to fail because it creates a pending reboot state and the build can't continue. I posted this question to the docker forum only a couple of hours ago (I didn't see this one or I would have just added my use case here) : https://forums.docker.com/t/reboot-during-docker-build-on-windows-2016/44654 But the point remains, there are a lot of potential scenarios when creating Windows containers (in my case on 2016) that create the need for a reboot and, whilst its possible to suppress them, they still ultimately need to be satisfied. So it would be really helpful if someone from Docker/Microsoft would indicate whether this has any prospect of working at all. Its not clear whether if a reboot is suppressed (assuming your installer type allows it) whether, if the build were able to continue to the next layer, the reboot state is resolved by virtue of starting a new container, or, if its the final layer, satisfied when a container is started from that image, but TBH that seems a bit unlikely. |
I finally managed to get Server-Media-Foundation installed and working in Windows Server Core 2016 Docker container. This might also work for other windows server features installs. Quick steps to build Docker image
Docker file and scriptYou can find a Dockerfile and the script used to patch up the .mum files on here on GitHub |
@friism DISM returns exit code 3010 - restart required. What do you recommend in this case? |
Create a install.cmd file with in it : call %* then in your Dockerfile : Source : https://docs.microsoft.com/en-us/visualstudio/install/advanced-build-tools-container |
No fix or workaround for this problem so far?! |
Any update? |
Anything new related to the need of rebooting a Windows container (2020 Aug 29?) |
Windows 1909 doesn't require a restart |
In the documentation, it should be clarified how Windows Features that require a "server restart" can be installed in a container. I tried it with different approaches and could not get i.e. the NetworkController installed.
Detailed problem description:
http://superuser.com/questions/1048025/how-to-install-a-windows-feature-on-docker-container-windows-2016-server-that
The text was updated successfully, but these errors were encountered: