Skip to content

Commit c239593

Browse files
committed
Eng feedback
1 parent ab0aba5 commit c239593

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

articles/batch/batch-docker-container-workloads.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ containerConfig.ContainerRegistries = new List<ContainerRegistry> { containerReg
174174
VirtualMachineConfiguration virtualMachineConfiguration = new VirtualMachineConfiguration(
175175
imageReference: imageReference,
176176
nodeAgentSkuId: "batch.node.ubuntu 16.04");
177+
virtualMachineConfiguration.ContainerConfiguration = containerConfig;
177178

178179
// Set a native host command line start task
179180
StartTask startTaskContainer = new StartTask( commandLine: "<native-host-command-line>" );
@@ -183,6 +184,9 @@ CloudPool pool = batchClient.PoolOperations.CreatePool(
183184
poolId: poolId,
184185
virtualMachineSize: "Standard_NC6",
185186
virtualMachineConfiguration: virtualMachineConfiguration);
187+
188+
// Start the task in the pool
189+
pool.StartTask = startTaskContainer;
186190
...
187191
```
188192

0 commit comments

Comments
 (0)