Improve API format examples
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit 8e02b29d24
)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
554400b75b
commit
06b34e507d
8 changed files with 18 additions and 18 deletions
|
@ -212,7 +212,7 @@ Create a container
|
|||
- **OpenStdin** - Boolean value, opens `stdin`,
|
||||
- **StdinOnce** - Boolean value, close `stdin` after the 1 attached client disconnects.
|
||||
- **Env** - A list of environment variables in the form of `["VAR=value", ...]`
|
||||
- **Labels** - Adds a map of labels to a container. To specify a map: `{"key":"value"[,"key2":"value2"]}`
|
||||
- **Labels** - Adds a map of labels to a container. To specify a map: `{"key":"value", ... }`
|
||||
- **Cmd** - Command to run specified as a string or an array of strings.
|
||||
- **Entrypoint** - Set the entry point for the container as a string or an array
|
||||
of strings.
|
||||
|
|
|
@ -217,7 +217,7 @@ Create a container
|
|||
- **OpenStdin** - Boolean value, opens `stdin`,
|
||||
- **StdinOnce** - Boolean value, close `stdin` after the 1 attached client disconnects.
|
||||
- **Env** - A list of environment variables in the form of `["VAR=value", ...]`
|
||||
- **Labels** - Adds a map of labels to a container. To specify a map: `{"key":"value"[,"key2":"value2"]}`
|
||||
- **Labels** - Adds a map of labels to a container. To specify a map: `{"key":"value", ... }`
|
||||
- **Cmd** - Command to run specified as a string or an array of strings.
|
||||
- **Entrypoint** - Set the entry point for the container as a string or an array
|
||||
of strings.
|
||||
|
|
|
@ -219,7 +219,7 @@ Create a container
|
|||
- **OpenStdin** - Boolean value, opens `stdin`,
|
||||
- **StdinOnce** - Boolean value, close `stdin` after the 1 attached client disconnects.
|
||||
- **Env** - A list of environment variables in the form of `["VAR=value", ...]`
|
||||
- **Labels** - Adds a map of labels to a container. To specify a map: `{"key":"value"[,"key2":"value2"]}`
|
||||
- **Labels** - Adds a map of labels to a container. To specify a map: `{"key":"value", ... }`
|
||||
- **Cmd** - Command to run specified as a string or an array of strings.
|
||||
- **Entrypoint** - Set the entry point for the container as a string or an array
|
||||
of strings.
|
||||
|
|
|
@ -228,7 +228,7 @@ Create a container
|
|||
- **OpenStdin** - Boolean value, opens `stdin`,
|
||||
- **StdinOnce** - Boolean value, close `stdin` after the 1 attached client disconnects.
|
||||
- **Env** - A list of environment variables in the form of `["VAR=value", ...]`
|
||||
- **Labels** - Adds a map of labels to a container. To specify a map: `{"key":"value"[,"key2":"value2"]}`
|
||||
- **Labels** - Adds a map of labels to a container. To specify a map: `{"key":"value", ... }`
|
||||
- **Cmd** - Command to run specified as a string or an array of strings.
|
||||
- **Entrypoint** - Set the entry point for the container as a string or an array
|
||||
of strings.
|
||||
|
|
|
@ -331,7 +331,7 @@ Create a container
|
|||
- **OpenStdin** - Boolean value, opens `stdin`,
|
||||
- **StdinOnce** - Boolean value, close `stdin` after the 1 attached client disconnects.
|
||||
- **Env** - A list of environment variables in the form of `["VAR=value", ...]`
|
||||
- **Labels** - Adds a map of labels to a container. To specify a map: `{"key":"value"[,"key2":"value2"]}`
|
||||
- **Labels** - Adds a map of labels to a container. To specify a map: `{"key":"value", ... }`
|
||||
- **Cmd** - Command to run specified as a string or an array of strings.
|
||||
- **Entrypoint** - Set the entry point for the container as a string or an array
|
||||
of strings.
|
||||
|
|
|
@ -354,7 +354,7 @@ Create a container
|
|||
- **OpenStdin** - Boolean value, opens `stdin`,
|
||||
- **StdinOnce** - Boolean value, close `stdin` after the 1 attached client disconnects.
|
||||
- **Env** - A list of environment variables in the form of `["VAR=value", ...]`
|
||||
- **Labels** - Adds a map of labels to a container. To specify a map: `{"key":"value"[,"key2":"value2"]}`
|
||||
- **Labels** - Adds a map of labels to a container. To specify a map: `{"key":"value", ... }`
|
||||
- **Cmd** - Command to run specified as a string or an array of strings.
|
||||
- **Entrypoint** - Set the entry point for the container as a string or an array
|
||||
of strings.
|
||||
|
|
|
@ -371,7 +371,7 @@ Create a container
|
|||
- **OpenStdin** - Boolean value, opens `stdin`,
|
||||
- **StdinOnce** - Boolean value, close `stdin` after the 1 attached client disconnects.
|
||||
- **Env** - A list of environment variables in the form of `["VAR=value", ...]`
|
||||
- **Labels** - Adds a map of labels to a container. To specify a map: `{"key":"value"[,"key2":"value2"]}`
|
||||
- **Labels** - Adds a map of labels to a container. To specify a map: `{"key":"value", ... }`
|
||||
- **Cmd** - Command to run specified as a string or an array of strings.
|
||||
- **Entrypoint** - Set the entry point for the container as a string or an array
|
||||
of strings.
|
||||
|
@ -4105,7 +4105,7 @@ JSON Parameters:
|
|||
- **Annotations** – Optional medata to associate with the service.
|
||||
- **Name** – User-defined name for the service.
|
||||
- **Labels** – A map of labels to associate with the service (e.g.,
|
||||
`{"key":"value"[,"key2":"value2"]}`).
|
||||
`{"key":"value", "key2":"value2"}`).
|
||||
- **Role** - Role of the node (worker/manager).
|
||||
- **Availability** - Availability of the node (active/pause/drain).
|
||||
|
||||
|
@ -4598,7 +4598,7 @@ image](docker_remote_api_v1.24.md#create-an-image) section for more details.
|
|||
**JSON Parameters**:
|
||||
|
||||
- **Name** – User-defined name for the service.
|
||||
- **Labels** – A map of labels to associate with the service (e.g., `{"key":"value"[,"key2":"value2"]}`).
|
||||
- **Labels** – A map of labels to associate with the service (e.g., `{"key":"value", "key2":"value2"}`).
|
||||
- **TaskTemplate** – Specification of the tasks to start as part of the new service.
|
||||
- **ContainerSpec** - Container settings for containers started as part of this task.
|
||||
- **Image** – A string specifying the image name to use for the container.
|
||||
|
@ -4608,7 +4608,7 @@ image](docker_remote_api_v1.24.md#create-an-image) section for more details.
|
|||
- **Dir** – A string specifying the working directory for commands to run in.
|
||||
- **User** – A string value specifying the user inside the container.
|
||||
- **Labels** – A map of labels to associate with the service (e.g.,
|
||||
`{"key":"value"[,"key2":"value2"]}`).
|
||||
`{"key":"value", "key2":"value2"}`).
|
||||
- **Mounts** – Specification for mounts to be added to containers
|
||||
created as part of the service.
|
||||
- **Target** – Container path.
|
||||
|
@ -4838,7 +4838,7 @@ image](docker_remote_api_v1.24.md#create-an-image) section for more details.
|
|||
**JSON Parameters**:
|
||||
|
||||
- **Name** – User-defined name for the service.
|
||||
- **Labels** – A map of labels to associate with the service (e.g., `{"key":"value"[,"key2":"value2"]}`).
|
||||
- **Labels** – A map of labels to associate with the service (e.g., `{"key":"value", "key2":"value2"}`).
|
||||
- **TaskTemplate** – Specification of the tasks to start as part of the new service.
|
||||
- **ContainerSpec** - Container settings for containers started as part of this task.
|
||||
- **Image** – A string specifying the image name to use for the container.
|
||||
|
@ -4848,7 +4848,7 @@ image](docker_remote_api_v1.24.md#create-an-image) section for more details.
|
|||
- **Dir** – A string specifying the working directory for commands to run in.
|
||||
- **User** – A string value specifying the user inside the container.
|
||||
- **Labels** – A map of labels to associate with the service (e.g.,
|
||||
`{"key":"value"[,"key2":"value2"]}`).
|
||||
`{"key":"value", "key2":"value2"}`).
|
||||
- **Mounts** – Specification for mounts to be added to containers created as part of the new
|
||||
service.
|
||||
- **Target** – Container path.
|
||||
|
|
|
@ -373,7 +373,7 @@ Create a container
|
|||
- **OpenStdin** - Boolean value, opens `stdin`,
|
||||
- **StdinOnce** - Boolean value, close `stdin` after the 1 attached client disconnects.
|
||||
- **Env** - A list of environment variables in the form of `["VAR=value", ...]`
|
||||
- **Labels** - Adds a map of labels to a container. To specify a map: `{"key":"value"[,"key2":"value2"]}`
|
||||
- **Labels** - Adds a map of labels to a container. To specify a map: `{"key":"value", ... }`
|
||||
- **Cmd** - Command to run specified as a string or an array of strings.
|
||||
- **Entrypoint** - Set the entry point for the container as a string or an array
|
||||
of strings. If the array consists of exactly one empty string (`[""]`) then the entry point
|
||||
|
@ -4141,7 +4141,7 @@ JSON Parameters:
|
|||
- **Annotations** – Optional medata to associate with the service.
|
||||
- **Name** – User-defined name for the service.
|
||||
- **Labels** – A map of labels to associate with the service (e.g.,
|
||||
`{"key":"value"[,"key2":"value2"]}`).
|
||||
`{"key":"value", "key2":"value2"}`).
|
||||
- **Role** - Role of the node (worker/manager).
|
||||
- **Availability** - Availability of the node (active/pause/drain).
|
||||
|
||||
|
@ -4634,7 +4634,7 @@ image](docker_remote_api_v1.25.md#create-an-image) section for more details.
|
|||
**JSON Parameters**:
|
||||
|
||||
- **Name** – User-defined name for the service.
|
||||
- **Labels** – A map of labels to associate with the service (e.g., `{"key":"value"[,"key2":"value2"]}`).
|
||||
- **Labels** – A map of labels to associate with the service (e.g., `{"key":"value", "key2":"value2"}`).
|
||||
- **TaskTemplate** – Specification of the tasks to start as part of the new service.
|
||||
- **ContainerSpec** - Container settings for containers started as part of this task.
|
||||
- **Image** – A string specifying the image name to use for the container.
|
||||
|
@ -4644,7 +4644,7 @@ image](docker_remote_api_v1.25.md#create-an-image) section for more details.
|
|||
- **Dir** – A string specifying the working directory for commands to run in.
|
||||
- **User** – A string value specifying the user inside the container.
|
||||
- **Labels** – A map of labels to associate with the service (e.g.,
|
||||
`{"key":"value"[,"key2":"value2"]}`).
|
||||
`{"key":"value", "key2":"value2"}`).
|
||||
- **Mounts** – Specification for mounts to be added to containers
|
||||
created as part of the service.
|
||||
- **Target** – Container path.
|
||||
|
@ -4874,7 +4874,7 @@ image](docker_remote_api_v1.25.md#create-an-image) section for more details.
|
|||
**JSON Parameters**:
|
||||
|
||||
- **Name** – User-defined name for the service.
|
||||
- **Labels** – A map of labels to associate with the service (e.g., `{"key":"value"[,"key2":"value2"]}`).
|
||||
- **Labels** – A map of labels to associate with the service (e.g., `{"key":"value", "key2":"value2"}`).
|
||||
- **TaskTemplate** – Specification of the tasks to start as part of the new service.
|
||||
- **ContainerSpec** - Container settings for containers started as part of this task.
|
||||
- **Image** – A string specifying the image name to use for the container.
|
||||
|
@ -4884,7 +4884,7 @@ image](docker_remote_api_v1.25.md#create-an-image) section for more details.
|
|||
- **Dir** – A string specifying the working directory for commands to run in.
|
||||
- **User** – A string value specifying the user inside the container.
|
||||
- **Labels** – A map of labels to associate with the service (e.g.,
|
||||
`{"key":"value"[,"key2":"value2"]}`).
|
||||
`{"key":"value", "key2":"value2"}`).
|
||||
- **Mounts** – Specification for mounts to be added to containers created as part of the new
|
||||
service.
|
||||
- **Target** – Container path.
|
||||
|
|
Loading…
Add table
Reference in a new issue