-
Notifications
You must be signed in to change notification settings - Fork 43
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
Docker Linux containers on Windows Server (LCOW) and Service Fabric Example #2
Comments
Service Fabric supports containers on Windows Server 2016 with the current v5.6 release. You can run this in production, it is fully supported. It is not supported on Windows 10 yet and hence for local debugging in a Service Fabric project, that is coming in the forthcoming release. For local debugging right now you have to use the ASP.NET core project type and add Docker support or debug Service Fabric as a process. |
@msfussell I've updated the title to better reflect an example of Docker Linux containers running on Windows Server 2016 and Service Fabric. Seems this is still not a supported scenario. |
I installed Docker CE (edge release) on Windows Server 2016 with latest Service Fabric + VS 2017. I pulled a Linux Container & created a Service Fabric container project following guidance. Upon publishing the project (SomeLinuxContainer) I see the following error in Service Fabric: Error event: SourceId='System.Hosting', Property='Download:1.0:1.0'. Just want to triple check the above is not currently supported or should I raise a bug in the service-fabric-issues? Thx. |
This will change all that, right? https://blogs.technet.microsoft.com/windowsserver/2017/09/13/sneak-peek-3-windows-server-version-1709-for-developers/ |
@sfmskywalker Yes, with the advent of Linux images in containers you will now be able to do this with the Windows 1709 build, which has just become available. |
Awesome! |
Hi, have any of you tried to use Linux and Windows containers simultaneously on windows hosts using Service Fabric? Is this supported after Windows Server 1709? |
No Service Fabric does not support Linux containers on windows today. We are working on enabling this for a future release |
I just used a few hours going over https://www.thomasmaurer.ch/2017/10/how-to-run-docker-linux-container-on-windows-server-1709/ and playing with windows 1709. But i found no way to get the dockerd to work with unix images. More specific I run into issues when trying to restart the docker service after installing the preview docker and having enabled container features. So my conclussion is that its not possible at this point to get it working |
lcow can be configured on a SF cluster nodes with Windows 1709. However, to pull or run a Linux container on Windows, |
@chunli Apparently there is a way to pass parameters on to docker, but you will have to update the Service Fabric manifest... Haven't tried it out though. |
@cpersso9 Parameter |
@chunliu maybe this is an option for you, to set it for default platform linux? It can be done with environment variable LCOW_API_PLATFORM_IF_OMITTED linux Dont know yet how to set this before SF cluster starts its daemon. |
Wondering what everyone thinks, should we re-open this issue or maybe create a new one on https://github.com/Azure/service-fabric-issues ? |
@chunliu What is your experience with enabling lcow on sf cluster? How easily can it be done? Whats the steps? |
@pksorensen Enabling lcow on sf cluster is quite easy. You can do the following. When you provision the sf cluster with an ARM template, you can use a powershell script to configure the docker daemon. See my blog post regarding the ARM template: Deploying a Service Fabric cluster to run Windows containers. And I have a gist that can be used as the PowerShell script to enable lcow. config-lcow.ps1. You can extend the script to support environment variables. But even if you can run linux containers with the env variable LCOW_API_PLATFORM_IF_OMITTED, you will lose the capability of running Windows containers. To get a sf cluster supporting both Windows and Linux containers, I guess we need to wait for sf team's official support. |
I agree @chunliu - i just had a use case where i only needed linux containers. And in the past i was using SkipDockerProcessManagement and setting up my own deamon. But i will look at your posts and maybe it can update this approach :) |
My install script looks like this:
From your script i am concluding that you also update "$Env:ProgramFiles\Docker" - it was my impression that service fabric used a different daemon. |
@msfussell @RajeetN - hope someone from the team can clarify when LCOW will be fully enabled & supported, seems a few of us would really find this useful |
Looks like the environment variable was removed later also. |
Could I use the <Commands /> node under . <ContainerHost /> to pass "--platform linux" ? |
Hi @masnider @mikkelhegn @raunakpandya - any update on this feature? Client is interested in amalgamating workloads which require a separate Linux based Kubernetes cluster for machine learning... For a little more background, I'm proto-typing the idea locally using Windows Server 2019 which I know is currently undergoing Service Fabric compatibility testing. Thx. Related: |
I'm trying to run a Linux container on Service Fabric on Windows 10, and I'm getting the following error:
I can't quite figure out if running Linux containers is supposed to work? |
I do not think LCOW is supported by Service Fabric yet, but this feature request may also be of interest: Support for Windows Subystem for Linux (WSL2) |
@RajeetN Around 18 months ago, you said:
Has there been any progress on this feature? Or if not, are you still intending to enable this in future releases? |
Had a similar work requirement to be able to run linux containers in Windows. Haven't found any documentation for the same, so had to go with the onebox setup and have sf linux cluster for container applications, but facing issues there as well. Can someone help me to understand what I might be doing wrong or what would be the better way to do it. If linux containers work in SF cluster that would be best. Otherwise can I fix how I have presently tried it to make it work eventually? |
Hi @vturecek @msfussell any update/ETA on when Service Fabric will support Docker Linux containers on Windows 10 / Windows Server 2016?
The text was updated successfully, but these errors were encountered: