Skip to content

DockerImage

A Docker image.

Initializers

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore"
alicloudroscdkcore.NewDockerImage(image *string, _imageHash *string) DockerImage
Name Type Description
image *string No description.
_imageHash *string No description.

imageRequired

  • Type: *string

_imageHashOptional

  • Type: *string

Methods

Name Description
Cp Copies a file or directory out of the Docker image to the local filesystem.
Run Runs a Docker image.
ToJSON Provides a stable representation of this image for JSON serialization.

Cp

func Cp(imagePath *string, outputPath *string) *string

Copies a file or directory out of the Docker image to the local filesystem.

If outputPath is omitted the destination path is a temporary directory.

imagePathRequired

  • Type: *string

the path in the Docker image.


outputPathOptional

  • Type: *string

the destination path for the copy operation.


Run

func Run(options DockerRunOptions)

Runs a Docker image.

optionsOptional


ToJSON

func ToJSON() *string

Provides a stable representation of this image for JSON serialization.

Static Functions

Name Description
FromBuild Builds a Docker image.
FromRegistry Reference an image on DockerHub or another online registry.

FromBuild

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore"
alicloudroscdkcore.DockerImage_FromBuild(path *string, options DockerBuildOptions) DockerImage

Builds a Docker image.

pathRequired

  • Type: *string

The path to the directory containing the Docker file.


optionsOptional

Docker build options.


FromRegistry

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore"
alicloudroscdkcore.DockerImage_FromRegistry(image *string) DockerImage

Reference an image on DockerHub or another online registry.

imageRequired

  • Type: *string

the image name.


Properties

Name Type Description
Image *string No description.

ImageRequired

func Image() *string
  • Type: *string