Comments (10)
Hello, is this in the context of Kubernetes (are you using the cri plugin of containerd) or outside of Kubernetes?
from windows-containers.
Hi @MikeZappa87, No this is outside of Kubernetes environment.
In Kubernetes, I think pause container is started first in the HCN namespace and then the containers from the pod are launched.
from windows-containers.
Is it possible to make use of the cri-api (RunPodSandbox/CreateContainer)? This is common outside of the K8s space so you wouldn't be outside of the normal. It would satisfy creating the compartment, executing the cni plugin. I will check why creating a namespace doesn't show in the get-netcompartment.
How are you doing this? Via ctr?
from windows-containers.
So unfortunately we have our own workflow which does not use the cri-api. Presently I was using the containerd SDK client to accomplish the workflow I mentioned earlier.
However, there is an easy test for this is just using New-HnsNamespace
Powershell command to create an HCN namespace. If you check the compartments using Get-NetCompartment
, it won't have any entry. Or if you use Get-HNSNamespace
, then there won't be a CompartmentID associated with this HCN Namespace.
from windows-containers.
One item to note is:
"Start a container using containerd and pass the HCN namespace ID in the OCI spec options." Is that it probably won't do anything since https://github.com/containerd/containerd/blob/4d2c8879908285454a4006534cb0af82bb58a406/pkg/netns/netns_windows.go#L33
We don't pass anything to the create compartment.
from windows-containers.
This issue has been open for 30 days with no updates.
@MikeZappa87, please provide an update or close this issue.
from windows-containers.
HNS will create the compartment during container creation. It is expected that the compartment isn't present yet.
from windows-containers.
There is work currently being done to tie the lifetime of the network namespace and compartment to the pod itself. This feature is targeting Windows Server 2022.
from windows-containers.
Thanks @MikeZappa87 and @kestratt for the information.
from windows-containers.
This issue has been open for 90 days with no updates.
@MikeZappa87, please provide an update or close this issue.
from windows-containers.
Related Issues (20)
- L2Bridge not working correctly on Windows server 2022 - 21H2 HOT 10
- Support Window 10 base image for Windows Service 2022 HOT 1
- Not able to download windows container images HOT 3
- WIN API LoadLibraryA is failling when loading a DLL created by Intel Fortran compiler in Windows Nanoserver container HOT 6
- Loading Minifilters in HyperV containers HOT 3
- Docker in Docker with Windows Containers HOT 2
- pull image from PS command on Docker Desktop Window 10Ent HOT 13
- Plans for Windows 10/11 Containers in the Future HOT 4
- Issues Installing Oracle Instant Client on Windows Container: Network Sharing Problem HOT 2
- `ERROR_ACCESS_DENIED` when trying to open for writing _hidden_ files located in mounted folder inside containers HOT 8
- How to deploy dotnet microservice in iis server inside Docker container HOT 4
- Get-WindowsFeature is not available in mcr.microsoft.com/windows:ltsc2019 HOT 7
- Process Isolation is very slow as compared to HyperV Containers on Server 2019 HOT 5
- regsvr32 fails when registering DAO350.DLL HOT 3
- install-docker scripts failing when passing -useDHCP due to deprecated dependency HOT 4
- MSIX installation support HOT 4
- [MicrosoftDocs] Insufficient Documentation for Windows Server 2022 HOT 3
- [MicrosoftDocs] gMSA Documentation HOT 5
- Issue with missing DLL in runtime:4.8-windowsservercore-ltsc2022 HOT 5
- Windows containers shutdown not working properly on docker (no SIGTERM?) HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from windows-containers.