Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
| ... | ... |
@@ -117,42 +117,42 @@ func (c *client) Version(ctx context.Context) (containerd.Version, error) {
|
| 117 | 117 |
// Isolation=Process example: |
| 118 | 118 |
// |
| 119 | 119 |
// {
|
| 120 |
-// "SystemType": "Container", |
|
| 121 |
-// "Name": "5e0055c814a6005b8e57ac59f9a522066e0af12b48b3c26a9416e23907698776", |
|
| 122 |
-// "Owner": "docker", |
|
| 123 |
-// "VolumePath": "\\\\\\\\?\\\\Volume{66d1ef4c-7a00-11e6-8948-00155ddbef9d}",
|
|
| 124 |
-// "IgnoreFlushesDuringBoot": true, |
|
| 125 |
-// "LayerFolderPath": "C:\\\\control\\\\windowsfilter\\\\5e0055c814a6005b8e57ac59f9a522066e0af12b48b3c26a9416e23907698776", |
|
| 126 |
-// "Layers": [{
|
|
| 127 |
-// "ID": "18955d65-d45a-557b-bf1c-49d6dfefc526", |
|
| 128 |
-// "Path": "C:\\\\control\\\\windowsfilter\\\\65bf96e5760a09edf1790cb229e2dfb2dbd0fcdc0bf7451bae099106bfbfea0c" |
|
| 129 |
-// }], |
|
| 130 |
-// "HostName": "5e0055c814a6", |
|
| 131 |
-// "MappedDirectories": [], |
|
| 132 |
-// "HvPartition": false, |
|
| 133 |
-// "EndpointList": ["eef2649d-bb17-4d53-9937-295a8efe6f2c"], |
|
| 134 |
-//} |
|
| 120 |
+// "SystemType": "Container", |
|
| 121 |
+// "Name": "5e0055c814a6005b8e57ac59f9a522066e0af12b48b3c26a9416e23907698776", |
|
| 122 |
+// "Owner": "docker", |
|
| 123 |
+// "VolumePath": "\\\\\\\\?\\\\Volume{66d1ef4c-7a00-11e6-8948-00155ddbef9d}",
|
|
| 124 |
+// "IgnoreFlushesDuringBoot": true, |
|
| 125 |
+// "LayerFolderPath": "C:\\\\control\\\\windowsfilter\\\\5e0055c814a6005b8e57ac59f9a522066e0af12b48b3c26a9416e23907698776", |
|
| 126 |
+// "Layers": [{
|
|
| 127 |
+// "ID": "18955d65-d45a-557b-bf1c-49d6dfefc526", |
|
| 128 |
+// "Path": "C:\\\\control\\\\windowsfilter\\\\65bf96e5760a09edf1790cb229e2dfb2dbd0fcdc0bf7451bae099106bfbfea0c" |
|
| 129 |
+// }], |
|
| 130 |
+// "HostName": "5e0055c814a6", |
|
| 131 |
+// "MappedDirectories": [], |
|
| 132 |
+// "HvPartition": false, |
|
| 133 |
+// "EndpointList": ["eef2649d-bb17-4d53-9937-295a8efe6f2c"], |
|
| 134 |
+// } |
|
| 135 | 135 |
// |
| 136 | 136 |
// Isolation=Hyper-V example: |
| 137 | 137 |
// |
| 138 |
-//{
|
|
| 139 |
-// "SystemType": "Container", |
|
| 140 |
-// "Name": "475c2c58933b72687a88a441e7e0ca4bd72d76413c5f9d5031fee83b98f6045d", |
|
| 141 |
-// "Owner": "docker", |
|
| 142 |
-// "IgnoreFlushesDuringBoot": true, |
|
| 143 |
-// "Layers": [{
|
|
| 144 |
-// "ID": "18955d65-d45a-557b-bf1c-49d6dfefc526", |
|
| 145 |
-// "Path": "C:\\\\control\\\\windowsfilter\\\\65bf96e5760a09edf1790cb229e2dfb2dbd0fcdc0bf7451bae099106bfbfea0c" |
|
| 146 |
-// }], |
|
| 147 |
-// "HostName": "475c2c58933b", |
|
| 148 |
-// "MappedDirectories": [], |
|
| 149 |
-// "HvPartition": true, |
|
| 150 |
-// "EndpointList": ["e1bb1e61-d56f-405e-b75d-fd520cefa0cb"], |
|
| 151 |
-// "DNSSearchList": "a.com,b.com,c.com", |
|
| 152 |
-// "HvRuntime": {
|
|
| 153 |
-// "ImagePath": "C:\\\\control\\\\windowsfilter\\\\65bf96e5760a09edf1790cb229e2dfb2dbd0fcdc0bf7451bae099106bfbfea0c\\\\UtilityVM" |
|
| 154 |
-// }, |
|
| 155 |
-//} |
|
| 138 |
+// {
|
|
| 139 |
+// "SystemType": "Container", |
|
| 140 |
+// "Name": "475c2c58933b72687a88a441e7e0ca4bd72d76413c5f9d5031fee83b98f6045d", |
|
| 141 |
+// "Owner": "docker", |
|
| 142 |
+// "IgnoreFlushesDuringBoot": true, |
|
| 143 |
+// "Layers": [{
|
|
| 144 |
+// "ID": "18955d65-d45a-557b-bf1c-49d6dfefc526", |
|
| 145 |
+// "Path": "C:\\\\control\\\\windowsfilter\\\\65bf96e5760a09edf1790cb229e2dfb2dbd0fcdc0bf7451bae099106bfbfea0c" |
|
| 146 |
+// }], |
|
| 147 |
+// "HostName": "475c2c58933b", |
|
| 148 |
+// "MappedDirectories": [], |
|
| 149 |
+// "HvPartition": true, |
|
| 150 |
+// "EndpointList": ["e1bb1e61-d56f-405e-b75d-fd520cefa0cb"], |
|
| 151 |
+// "DNSSearchList": "a.com,b.com,c.com", |
|
| 152 |
+// "HvRuntime": {
|
|
| 153 |
+// "ImagePath": "C:\\\\control\\\\windowsfilter\\\\65bf96e5760a09edf1790cb229e2dfb2dbd0fcdc0bf7451bae099106bfbfea0c\\\\UtilityVM" |
|
| 154 |
+// }, |
|
| 155 |
+// } |
|
| 156 | 156 |
func (c *client) Create(_ context.Context, id string, spec *specs.Spec, runtimeOptions interface{}, opts ...containerd.NewContainerOpts) error {
|
| 157 | 157 |
if ctr := c.getContainer(id); ctr != nil {
|
| 158 | 158 |
return errors.WithStack(errdefs.Conflict(errors.New("id already in use")))
|