Skip to content

Docker - Proces Steps

Steps

Create Config

Create a configuration file from a file as content.ID of the new config will be stored in the output property configID.

NameTypeDescriptionRequired
ConfigStringName of the new configurationYes
Docker Client VariablesStringA list, separated by newline characters, of runtime environment variables for the Docker client. For example: DOCKER_HOST=tcp://192.0.2.100:2376No
Docker Config Create OptionsStringOptions for the Docker config create command. For example: label name=valueNo
Docker OptionsStringOptions for the Docker client. For example: -H tcp://127.0.0.1:2375 log-level=infoNo
FileStringPath to file holding contents of configYes

Create Image Registry Resource

Create an image registry resource in the Resource Tree.

NameTypeDescriptionRequired
AWS Command Line FileStringWhen type is Amazon ECR. Command or path to the AWS command line interface. If specified, AWS authentication will be used.Ensure the User Name and Password properties are set to the AWS Access ID and Secret Key respectively.No
AWS RegionStringWhen type is Amazon ECR. Amazon ECR Region.No
Allow Insecure ConnectionsStringSet this property to true to allow insecure registry connections.No
CF_HOMEStringWhen type is IBM Containers. The CF_HOME environment variable specifies the location of config.json for authentication.No
Email AddressStringThe image registry email address. This field may be required if the Docker client attempts to prompt for the email interactively.No
ICS APIStringThe api to use when logging in to IBM CloudNo
ICS OrganizationStringThe IBM Cloud organization to use when logging in to IBM CloudNo
ICS SpaceStringThe IBM Cloud space to use when logging in to IBM CloudNo
ICS apikeyPasswordThe IBM Cloud apikey to use when logging in to IBM CloudNo
Image Registry HostStringThe image registry server.Yes
Image Registry TypeEnumeration:Specify which API to connect with the Image Registry. When using IBM Containers, provide IBM Cloud Credentials. For Amazon ECR, use AWS access key as username and secret key as password.Yes
* docker
* ibm-containers
* artifactory
* amazon-ecr
Parent ResourceStringThe parent resource under which the image registry resource will be created.Yes
PasswordPasswordThe image registry password. When using IBM Containers, provide IBM Cloud Credentials. For Amazon ECR, use AWS access key as username and secret key as password.Yes
User NameStringThe image registry user name.When using IBM Containers, provide IBM Cloud Credentials. For Amazon ECR, use AWS access key as username and secret key as password.Yes

Create Secret

Create a secret from a file.ID of the new secret will be stored in the output property secretID.

NameTypeDescriptionRequired
Docker Client VariablesStringA list, separated by newline characters, of runtime environment variables for the Docker client. For example: DOCKER_HOST=tcp://192.0.2.100:2376No
Docker OptionsStringOptions for the Docker client. For example: -H tcp://127.0.0.1:2375 log-level=infoNo
Docker Secret Create OptionsStringOptions for the Docker secret create command. For example: label name=valueNo
FileStringPath to file holding contents of secret.Yes
SecretStringName of the new secret.Yes

Create Service

Create a new service. ID of the new service will be stored in the output property serviceID.

NameTypeDescriptionRequired
CommandStringCommand and args to execute in the container.No
Docker Client VariablesStringA list, separated by newline characters, of runtime environment variables for the Docker client. For example: DOCKER_HOST=tcp://192.0.2.100:2376No
Docker OptionsStringOptions for the Docker client. For example: -H tcp://127.0.0.1:2375 log-level=infoNo
Docker Service Create OptionsStringOptions for the Docker service create command. For example: name serviceNameNo
ImageStringImage the service will run.Yes

Deploy Stack

Deploy a new stack or update an existing stack.

NameTypeDescriptionRequired
Bundle FileStringPath to a bundle file. Either Bundle File or Compose File must be specified.No
Compose FileStringPath to a Compose file. Either Compose File or Bundle File must be specified.No
Docker Client VariablesStringA list, separated by newline characters, of runtime environment variables for the Docker client. For example: DOCKER_HOST=tcp://192.0.2.100:2376No
Docker OptionsStringOptions for the Docker client. For example: -H tcp://127.0.0.1:2375 log-level=infoNo
Docker Stack Deploy OptionsStringOptions for the Docker stack deploy command. For example: with-registry-authNo
Stack NameStringThe name of the stack to deployYes

Docker Login

Log in to a Docker registry.

NameTypeDescriptionRequired
Docker Client VariablesStringA list, separated by newline characters, of runtime environment variables for the Docker client. For example: DOCKER_HOST=tcp://192.0.2.100:2376No
Docker OptionsStringOptions for the Docker client. For example: -H tcp://127.0.0.1:2375 log-level=infoNo
Docker RegistryStringThe Docker registry server. Leave blank to use the default, https://index.docker.io/v1/.No
Email AddressStringThe Docker registry email address. This field may be required if the Docker client attempts to prompt for the email interactively.No
PasswordPasswordThe Docker registry password.Yes
User NameStringThe Docker registry user name.Yes

Docker Logout

Logout of a Docker registry.

NameTypeDescriptionRequired
Docker RegistryStringThe Docker registry server. Leave blank to use the default, https://index.docker.io/v1/.No

Initialize Swarm

Initialize a swarm. Output properties will contain the manager/worker tokens and the address:port of the new swarm manager.

NameTypeDescriptionRequired
Docker Client VariablesStringA list, separated by newline characters, of runtime environment variables for the Docker client. For example: DOCKER_HOST=tcp://192.0.2.100:2376No
Docker OptionsStringOptions for the Docker client. For example: -H tcp://127.0.0.1:2375 log-level=infoNo
Docker Swarm Init OptionsStringOptions for the Docker swarm init command. For example: advertise-addrNo

Join Swarm

Join a swarm as a node and/or manager.

NameTypeDescriptionRequired
Docker Client VariablesStringA list, separated by newline characters, of runtime environment variables for the Docker client. For example: DOCKER_HOST=tcp://192.0.2.100:2376No
Docker OptionsStringOptions for the Docker client. For example: -H tcp://127.0.0.1:2375 log-level=infoNo
Docker Swarm Join OptionsStringOptions for the Docker swarm join command. For example: advertise-addrNo
Manager Host AddressStringThe host:port of an existing swarm manager node.Yes
Swarm Join TokenStringToken for entry into the swarm.Yes

Leave Swarm

Leave the swarm.

NameTypeDescriptionRequired
Docker Client VariablesStringA list, separated by newline characters, of runtime environment variables for the Docker client. For example: DOCKER_HOST=tcp://192.0.2.100:2376No
Docker OptionsStringOptions for the Docker client. For example: -H tcp://127.0.0.1:2375 log-level=infoNo
Docker Swarm Leave OptionsStringOptions for the Docker swarm leave command. For example: forceNo

Manage Swarm Join Tokens

Manage join tokens. Output properties will contain the requested token and optionally the advertise address for the swarm.

NameTypeDescriptionRequired
Docker Client VariablesStringA list, separated by newline characters, of runtime environment variables for the Docker client. For example: DOCKER_HOST=tcp://192.0.2.100:2376No
Docker OptionsStringOptions for the Docker client. For example: -H tcp://127.0.0.1:2375 log-level=infoNo
Docker Swarm Join-Token OptionsStringOptions for the Docker swarm join-token command. For example: rotateNo
Docker Swarm Join-Token TypeEnumeration:The type of swarm token to manage, worker or managerYes
* worker
* manager

Promote Image

Promote an image from a source registry to a destination registry.

NameTypeDescriptionRequired
Destination AWS Command Line InterfaceStringWhen type is Amazon ECR. Command or path to the AWS command line interface. If specified, AWS authentication will be used.Ensure the User Name and Password properties are set to the AWS Access ID and Secret Key respectively.No
Destination AWS RegionStringWhen type is Amazon ECR. Region to use when logging into AWS.No
Destination Allow Insecure ConnectionsStringSet this property to true to allow insecure registry connections to the destination regsitry.No
Destination CF_HOMEStringWhen type is IBM Containers. The CF_HOME environment variable specifies the location of config.json for authentication.No
Destination Email AddressStringThe destination registry email address. This field may be required if the Docker client attempts to prompt for the email interactively.No
Destination ICS APIStringThe api to use when logging in to IBM Container Service on IBM CloudNo
Destination ICS OrganizationStringThe IBM Cloud organization to use when logging in to IBM Container Service on IBM CloudNo
Destination ICS SpaceStringThe IBM Cloud space to use when logging in to IBM Container Service on IBM CloudNo
Destination ICS apikeyPasswordThe IBM Cloud apikey to use when logging in to IBM Container Service on IBM CloudNo
Destination Image Registry TypeEnumeration:Specify which API to connect with the Destination Image Registry. When using IBM Containers, provide IBM Cloud Credentials. For Amazon ECR, use AWS access key as username and secret key as password.Yes
* docker
* ibm-containers
* artifactory
* amazon-ecr
Destination Image TagStringThe tag to apply to the image in the destination registry.If not specified, the tag given in the Image field will be used.No
Destination PasswordPasswordThe destination registry password. When using IBM Containers, provide IBM Cloud Credentials. For Amazon ECR, use AWS access key as username and secret key as password.Yes
Destination RegistryStringThe Docker registry server the image will be promoted to. Leave blank to use the default, https://index.docker.io/v1/.Yes
Destination User NameStringThe destination registry user name. When using IBM Containers, provide IBM Cloud Credentials. For Amazon ECR, use AWS access key as username and secret key as password.Yes
Docker Client VariablesStringA list, separated by newline characters, of runtime environment variables for the Docker client. For example: DOCKER_HOST=tcp://192.0.2.100:2376No
Docker OptionsStringOptions for the Docker client. For example: -H tcp://127.0.0.1:2375 log-level=infoNo
ImageStringThe source image to be promoted to the destination registry. For example: mysql:5.5Yes

Pull Docker Image

Retrieve an image from a Docker registry.

NameTypeDescriptionRequired
Docker Client VariablesStringA list, separated by newline characters, of runtime environment variables for the Docker client. For example: DOCKER_HOST=tcp://192.0.2.100:2376No
Docker OptionsStringOptions for the Docker client. For example: -H tcp://127.0.0.1:2375 log-level=infoNo
ImageStringThe name of the image to pull. For example: mysql:5.5Yes
Pull OptionsStringOptions for the pull command. For example: all-tags=false disable-content-trust=trueNo

Push Docker Image

Upload an image to a Docker registry.

NameTypeDescriptionRequired
Docker Client VariablesStringA list, separated by newline characters, of runtime environment variables for the Docker client. For example: DOCKER_HOST=tcp://192.0.2.100:2376No
Docker OptionsStringOptions for the Docker client. For example: -H tcp://127.0.0.1:2375 log-level=infoNo
ImageStringThe name of the image to push. For example: mysql:5.5Yes
Push OptionsStringOptions for the push command. For example: disable-content-trust=true help=falseNo

Remove Config

Remove one or more configuration files.

NameTypeDescriptionRequired
Config NameStringName or ID of the docker configuration file(s) to remove. If multiple configuration files are specified, separate them with spaces.Yes
Docker Client VariablesStringA list, separated by newline characters, of runtime environment variables for the Docker client. For example: DOCKER_HOST=tcp://192.0.2.100:2376No
Docker OptionsStringOptions for the Docker client. For example: -H tcp://127.0.0.1:2375 log-level=infoNo

Remove Docker Container

Remove a Docker container.

NameTypeDescriptionRequired
Docker Client VariablesStringA list, separated by newline characters, of runtime environment variables for the Docker client. For example: DOCKER_HOST=tcp://192.0.2.100:2376No
Docker ContainerStringThe name or ID of the container to remove.Yes
Docker OptionsStringOptions for the Docker client. For example: -H tcp://127.0.0.1:2375 log-level=infoNo
Docker Remove OptionsStringOptions for the Docker rm command. For example: link -fNo

Remove Secret

Remove one or more secrets.

NameTypeDescriptionRequired
Docker Client VariablesStringA list, separated by newline characters, of runtime environment variables for the Docker client. For example: DOCKER_HOST=tcp://192.0.2.100:2376No
Docker OptionsStringOptions for the Docker client. For example: -H tcp://127.0.0.1:2375 log-level=infoNo
Secret NameStringName or ID of the docker secret(s) to remove. If multiple secrets are specified, separate them with spaces.Yes

Remove Service

Remove one or more services.

NameTypeDescriptionRequired
Docker Client VariablesStringA list, separated by newline characters, of runtime environment variables for the Docker client. For example: DOCKER_HOST=tcp://192.0.2.100:2376No
Docker OptionsStringOptions for the Docker client. For example: -H tcp://127.0.0.1:2375 log-level=infoNo
Service NameStringName or ID of the docker service(s) to remove. If multiple services are specified, separate them with spaces.Yes

Remove Stack

Remove the specified stack.

NameTypeDescriptionRequired
Docker Client VariablesStringA list, separated by newline characters, of runtime environment variables for the Docker client. For example: DOCKER_HOST=tcp://192.0.2.100:2376No
Docker OptionsStringOptions for the Docker client. For example: -H tcp://127.0.0.1:2375 log-level=infoNo
Stack NameStringThe name of the stack to removeYes

Run Docker Container

Create a Docker container and run a command in the container.

NameTypeDescriptionRequired
CommandStringThe command and arguments to run inside the new container.No
Docker Client VariablesStringA list, separated by newline characters, of runtime environment variables for the Docker client. For example: DOCKER_HOST=tcp://192.0.2.100:2376No
Docker OptionsStringOptions for the Docker client. For example: -H tcp://127.0.0.1:2375 log-level=infoNo
ImageStringThe image to create the container from.Yes
Run OptionsStringOptions for the Docker run command. For example: publish-all restart=noNo

Scale Service

Scale one or multiple replicated services.

NameTypeDescriptionRequired
Docker Client VariablesStringA list, separated by newline characters, of runtime environment variables for the Docker client. For example: DOCKER_HOST=tcp://192.0.2.100:2376No
Docker OptionsStringOptions for the Docker client. For example: -H tcp://127.0.0.1:2375 log-level=infoNo
Service NameStringOne or more ServiceName=ReplicaCount values. If multiple services are specified, separate them with spaces. No spaces around the equal sign.Yes

Start Docker Container

Start a Docker container.

NameTypeDescriptionRequired
Docker Client VariablesStringA list, separated by newline characters, of runtime environment variables for the Docker client. For example: DOCKER_HOST=tcp://192.0.2.100:2376No
Docker ContainerStringThe name or ID of the container to start.Yes
Docker OptionsStringOptions for the Docker client. For example: -H tcp://127.0.0.1:2375 log-level=infoNo
Start OptionsStringOptions for the Docker start command. For example: attach=falseNo

Stop Docker Container

Stop a Docker container.

NameTypeDescriptionRequired
Docker Client VariablesStringA list, separated by newline characters, of runtime environment variables for the Docker client. For example: DOCKER_HOST=tcp://192.0.2.100:2376No
Docker ContainerStringThe name or ID of the container to stop.Yes
Docker OptionsStringOptions for the Docker client. For example: -H tcp://127.0.0.1:2375 log-level=infoNo
Stop OptionsStringOptions for the Docker stop command. For example: time=30No

Tag Docker Image

Tag an image into a repository.

NameTypeDescriptionRequired
Docker Client VariablesStringA list, separated by newline characters, of runtime environment variables for the Docker client. For example: DOCKER_HOST=tcp://192.0.2.100:2376No
Docker OptionsStringOptions for the Docker client. For example: -H tcp://127.0.0.1:2375 log-level=infoNo
ImageStringThe name of the image to tag. For example: ubuntu:latestYes
TagStringThis will give a new alias to an image in the repository. Use the form: [REGISTRYHOST/][USERNAME/]NAME[:TAG]. For example: hub.urbancode.com/node:0.10Yes
Tag OptionsStringOptions for the Docker tag command. docker tag Options source destinationNo

Update Service

Update a service.

NameTypeDescriptionRequired
Docker Client VariablesStringA list, separated by newline characters, of runtime environment variables for the Docker client. For example: DOCKER_HOST=tcp://192.0.2.100:2376No
Docker OptionsStringOptions for the Docker client. For example: -H tcp://127.0.0.1:2375 log-level=infoNo
Docker Service Update OptionsStringOptions for the Docker service update command. For example: image stringNo
Service NameStringThe service to update.Yes

Roles in the Docker plug-in

ImageRegistry Role

Role for resources that represents a Container Image Registry.

NameTypeDescription
AWS Command Line FileStringWhen type is Amazon ECR. Command or path to the AWS command line interface. If specified, AWS authentication will be used.Ensure the User Name and Password properties are set to the AWS Access ID and Secret Key respectively.
AWS RegionStringWhen type is Amazon ECR. Amazon ECR Region.
Allow Insecure ConnectionsStringSet this property to true to allow insecure registry connections.
CF_HOMEStringWhen type is IBM Containers. The CF_HOME environment variable specifies the location of config.json for authentication.
EmailStringEmail address associated with User Name.
ICS APIStringWhen type is IBM Containers. The api to use when logging in to IBM Cloud Container Registry.
ICS OrganizationStringWhen type is IBM Containers. The IBM Cloud organization to login to.
ICS SpaceStringWhen type is IBM Containers. The IBM Cloud space to login to.
ICS apikeyPasswordWhen type is IBM Containers. The IBM Cloud apikey to login with.
Image Registry HostStringThe Docker image registry server.
PasswordPasswordPassword used to access the image registery. When using IBM Containers, provide IBM Cloud Credentials. For Amazon ECR, use AWS access key as username and secret key as password.
Registry TypeEnumeration:Specify which API to connect with the Image Registry. When using IBM Containers, provide IBM Cloud Credentials. For Amazon ECR, use AWS access key as username and secret key as password.
User NameStringUser name used to access the image registery. When using IBM Containers, provide IBM Cloud Credentials. For Amazon ECR, use AWS access key as username and secret key as password.