Skip to content

Commit df9aa6d

Browse files
committed
Convert JSON string to 1 line
1 parent cb8db0f commit df9aa6d

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

articles/iot-edge/how-to-use-create-options.md

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -130,21 +130,7 @@ Once stringified for the final deployment manifest, these values would look like
130130
If you're running your IoT Edge module on a GPU-optimized virtual machine, you can enable an IoT Edge module to connect to your GPU as well. To do this with an existing module, add some specifications to your `createOptions`:
131131

132132
```json
133-
{
134-
"HostConfig": {
135-
"DeviceRequests":
136-
[
137-
{
138-
"Count": -1,
139-
"Capabilities": [
140-
[
141-
"gpu"
142-
]
143-
]
144-
}
145-
]
146-
}
147-
}
133+
{"HostConfig": {"DeviceRequests": [{"Count": -1,"Capabilities": [["gpu"]]}]}}
148134
```
149135

150136
To confirm these settings were successfully added, use the Docker inspect command to see the new setting in a JSON printout.

0 commit comments

Comments
 (0)