Skip to content

Commit 09639ce

Browse files
committed
OPTIONAL field MAY be null
Signed-off-by: Lei Jitang <[email protected]>
1 parent 32a3cb9 commit 09639ce

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

config.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ Since the [configuration JSON](#image-json) that gets hashed references hashes o
111111
- **Entrypoint** *array of strings*, OPTIONAL
112112

113113
A list of arguments to use as the command to execute when the container starts.
114-
This value acts as a default and is replaced by an entrypoint specified when creating a container. This field MAY be null.
114+
This value acts as a default and is replaced by an entrypoint specified when creating a container.
115115

116116
- **Cmd** *array of strings*, OPTIONAL
117117

@@ -121,7 +121,7 @@ Since the [configuration JSON](#image-json) that gets hashed references hashes o
121121

122122
- **Volumes** *object*, OPTIONAL
123123

124-
A set of directories which should be created as data volumes in a container running this image. This field MAY be null.
124+
A set of directories which should be created as data volumes in a container running this image.
125125
If a file or folder exists within the image with the same path as a data volume, that file or folder is replaced with the data volume and is never merged. **NOTE:** This JSON structure value is unusual because it is a direct JSON serialization of the Go type `map[string]struct{}` and is represented in JSON as an object mapping its keys to an empty object.
126126

127127
- **WorkingDir** *string*, OPTIONAL
@@ -174,6 +174,7 @@ Any extra fields in the Image JSON struct are considered implementation specific
174174

175175
Whitespace is OPTIONAL and implementations MAY have compact JSON with no whitespace.
176176

177+
The OPTIONAL field MAY be null, it means this field present but having an empty/null value.
177178
## Example
178179

179180
Here is an example image configuration JSON document:

0 commit comments

Comments
 (0)