Skip to content

Commit eba862d

Browse files
authored
Merge pull request #989 from dineshgovindasamy/windowsnamespace
Support for network namespace in windows
2 parents d810dbc + 6f5fcd4 commit eba862d

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

config-windows.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ The following parameters can be specified:
125125
* **`allowUnqualifiedDNSQuery`** *(bool, OPTIONAL)* - specifies if unqualified DNS name resolution is allowed.
126126
* **`DNSSearchList`** *(array of strings, OPTIONAL)* - comma separated list of DNS suffixes to use for name resolution.
127127
* **`networkSharedContainerName`** *(string, OPTIONAL)* - name (ID) of the container that we will share with the network stack.
128+
* **`networkNamespace`** *(string, OPTIONAL)* - name (ID) of the network namespace that will be used for the container. If a network namespace is specified no other parameter must be specified.
128129

129130
### Example
130131

@@ -139,7 +140,8 @@ The following parameters can be specified:
139140
"a.com",
140141
"b.com"
141142
],
142-
"networkSharedContainerName": "containerName"
143+
"networkSharedContainerName": "containerName",
144+
"networkNamespace": "168f3daf-efc6-4377-b20a-2c86764ba892"
143145
}
144146
}
145147
```

schema/config-windows.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@
7171
},
7272
"networkSharedContainerName": {
7373
"type": "string"
74+
},
75+
"networkNamespace": {
76+
"type": "string"
7477
}
7578
}
7679
},

specs-go/config.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -503,6 +503,8 @@ type WindowsNetwork struct {
503503
DNSSearchList []string `json:"DNSSearchList,omitempty"`
504504
// Name (ID) of the container that we will share with the network stack.
505505
NetworkSharedContainerName string `json:"networkSharedContainerName,omitempty"`
506+
// name (ID) of the network namespace that will be used for the container.
507+
NetworkNamespace string `json:"networkNamespace,omitempty"`
506508
}
507509

508510
// WindowsHyperV contains information for configuring a container to run with Hyper-V isolation.

0 commit comments

Comments
 (0)