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. |
Command
Optional
Command *[]*string
- Type: []string
- Default: run the command defined in the image
The command to run in the container.
Entrypoint
Optional
Entrypoint *[]*string
- Type: []string
- Default: run the entrypoint defined in the image
The entrypoint to run in the container.
Environment
Optional
Environment *map[string]*string
- Type: map[string]string
- Default: no environment variables.
The environment variables to pass to the container.
Network
Optional
Network *string
- Type: *string
- Default: no networking options
Docker Networking options.
Platform
Optional
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
SecurityOpt
Optional
SecurityOpt *string
- Type: *string
- Default: no security options
Security configuration when running the docker container.
User
Optional
User *string
- Type: *string
- Default: root or image default
The user to use when running the container.
Volumes
Optional
Volumes *[]DockerVolume
- Type: *[]DockerVolume
- Default: no volumes are mounted
Docker volumes to mount.
VolumesFrom
Optional
VolumesFrom *[]*string
- Type: []string
- Default: no containers are specified to mount volumes from
Where to mount the specified volumes from.
WorkingDirectory
Optional
WorkingDirectory *string
- Type: *string
- Default: image default
Working directory inside the container.