DockerRunOptions
Docker run options.
Initializer
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore"
&alicloudroscdkcore.DockerRunOptions {
Command: *[]*string,
Entrypoint: *[]*string,
Environment: *map[string]*string,
Network: *string,
Platform: *string,
SecurityOpt: *string,
User: *string,
Volumes: *[]github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.DockerVolume,
VolumesFrom: *[]*string,
WorkingDirectory: *string,
}
Properties
| Name | Type | Description |
|---|---|---|
Command |
[]string |
The command to run in the container. |
Entrypoint |
[]string |
The entrypoint to run in the container. |
Environment |
map[string]string |
The environment variables to pass to the container. |
Network |
*string |
Docker Networking options. |
Platform |
*string |
Set platform if server is multi-platform capable. Requires Docker Engine API v1.38+. |
SecurityOpt |
*string |
Security configuration when running the docker container. |
User |
*string |
The user to use when running the container. |
Volumes |
*[]DockerVolume |
Docker volumes to mount. |
VolumesFrom |
[]string |
Where to mount the specified volumes from. |
WorkingDirectory |
*string |
Working directory inside the container. |
CommandOptional
Command *[]*string
- Type: []string
- Default: run the command defined in the image
The command to run in the container.
EntrypointOptional
Entrypoint *[]*string
- Type: []string
- Default: run the entrypoint defined in the image
The entrypoint to run in the container.
EnvironmentOptional
Environment *map[string]*string
- Type: map[string]string
- Default: no environment variables.
The environment variables to pass to the container.
NetworkOptional
Network *string
- Type: *string
- Default: no networking options
Docker Networking options.
PlatformOptional
Platform *string
- Type: *string
- Default: no platform specified
Set platform if server is multi-platform capable. Requires Docker Engine API v1.38+.
Example value: linux/amd64
SecurityOptOptional
SecurityOpt *string
- Type: *string
- Default: no security options
Security configuration when running the docker container.
UserOptional
User *string
- Type: *string
- Default: root or image default
The user to use when running the container.
VolumesOptional
Volumes *[]DockerVolume
- Type: *[]DockerVolume
- Default: no volumes are mounted
Docker volumes to mount.
VolumesFromOptional
VolumesFrom *[]*string
- Type: []string
- Default: no containers are specified to mount volumes from
Where to mount the specified volumes from.
WorkingDirectoryOptional
WorkingDirectory *string
- Type: *string
- Default: image default
Working directory inside the container.