Skip to content

Docker - Proces Steps

Steps

Create Image Registry Resource

Create an image registry resource in the Resource Tree.

NameTypeDescriptionRequired
Parent ResourcetextBoxThe parent resource under which the image registry resource will be created.Yes
Image Registry HosttextBoxThe image registry server.Yes
User NametextBoxThe image registry user name. When using IBM Containers, provide Bluemix Credentials. For Amazon ECR, use AWS access key as username and secret key as password.Yes
PasswordsecureBoxThe image registry password. When using IBM Containers, provide Bluemix Credentials. For Amazon ECR, use AWS access key as username and secret key as password.Yes
Email AddresstextBoxThe image registry email address. This field may be required if the Docker client attempts to prompt for the email interactively.Yes
Allow Insecure ConnectionstextBoxSet this property to "true" to allow insecure registry connections.Yes
Image Registry TypeselectBoxSpecify which API to connect with the Image Registry. When using IBM Containers, provide Bluemix Credentials. For Amazon ECR, use AWS access key as username and secret key as password.Yes
ICS APItextBoxThe api to use when logging in to BluemixYes
ICS SpacetextBoxThe Bluemix space to use when logging in to BluemixYes
ICS OrganizationtextBoxThe Bluemix organization to use when logging in to BluemixYes
ICS apikeysecureBoxThe Bluemix apikey to use when logging in to BluemixYes
CF_HOMEtextBoxWhen type is IBM Containers. The CF_HOME environment variable specifies the location of config.json for authentication.Yes
AWS RegiontextBoxWhen type is Amazon ECR. Amazon ECR Region.Yes
AWS Command Line FiletextBoxWhen 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.Yes

Create Secret

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

NameTypeDescriptionRequired
SecrettextBoxName of the new secret.Yes
FiletextBoxPath to file holding contents of secret.Yes
Docker Secret Create OptionstextBoxOptions for the Docker secret create command. For example: --label name=valueYes
Docker OptionstextBoxOptions for the Docker client. For example: -H tcp://127.0.0.1:2375 --log-level=infoYes
Docker Client VariablestextAreaBoxA list, separated by newline characters, of runtime environment variables for the Docker client. For example: DOCKER_HOST=tcp://192.0.2.100:2376Yes

Create Service

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

NameTypeDescriptionRequired
ImagetextBoxImage the service will run.Yes
CommandtextBoxCommand and args to execute in the container.Yes
Docker Service Create OptionstextBoxOptions for the Docker service create command. For example: --name serviceNameYes
Docker OptionstextBoxOptions for the Docker client. For example: -H tcp://127.0.0.1:2375 --log-level=infoYes
Docker Client VariablestextAreaBoxA list, separated by newline characters, of runtime environment variables for the Docker client. For example: DOCKER_HOST=tcp://192.0.2.100:2376Yes

Deploy Stack

Deploy a new stack or update an existing stack.

NameTypeDescriptionRequired
Stack NametextBoxThe name of the stack to deployYes
Compose FiletextBoxPath to a Compose file. Either Compose File or Bundle File must be specified.Yes
Bundle FiletextBoxPath to a bundle file. Either Bundle File or Compose File must be specified.Yes
Docker Stack Deploy OptionstextBoxOptions for the Docker stack deploy command. For example: --with-registry-authYes
Docker OptionstextBoxOptions for the Docker client. For example: -H tcp://127.0.0.1:2375 --log-level=infoYes
Docker Client VariablestextAreaBoxA list, separated by newline characters, of runtime environment variables for the Docker client. For example: DOCKER_HOST=tcp://192.0.2.100:2376Yes

Docker Login

Log in to a Docker registry.

NameTypeDescriptionRequired
Docker RegistrytextBoxThe Docker registry server. Leave blank to use the default, https://index.docker.io/v1/.Yes
User NametextBoxThe Docker registry user name.Yes
PasswordsecureBoxThe Docker registry password.Yes
Email AddresstextBoxThe Docker registry email address. This field may be required if the Docker client attempts to prompt for the email interactively.Yes
Docker OptionstextBoxOptions for the Docker client. For example: -H tcp://127.0.0.1:2375 --log-level=infoYes
Docker Client VariablestextAreaBoxA list, separated by newline characters, of runtime environment variables for the Docker client. For example: DOCKER_HOST=tcp://192.0.2.100:2376Yes
AWS Command Line InterfacetextBoxCommand 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.Yes
AWS RegiontextBoxRegion to use when logging in to AWS.Yes

Docker Logout

Logout of a Docker registry.

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

Initialize Swarm

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

NameTypeDescriptionRequired
Docker Swarm Init OptionstextBoxOptions for the Docker swarm init command. For example: --advertise-addrYes
Docker OptionstextBoxOptions for the Docker client. For example: -H tcp://127.0.0.1:2375 --log-level=infoYes
Docker Client VariablestextAreaBoxA list, separated by newline characters, of runtime environment variables for the Docker client. For example: DOCKER_HOST=tcp://192.0.2.100:2376Yes

Join Swarm

Join a swarm as a node and/or manager.

NameTypeDescriptionRequired
Manager Host AddresstextBoxThe host:port of an existing swarm manager node.Yes
Swarm Join TokentextBoxToken for entry into the swarm.Yes
Docker Swarm Join OptionstextBoxOptions for the Docker swarm join command. For example: --advertise-addrYes
Docker OptionstextBoxOptions for the Docker client. For example: -H tcp://127.0.0.1:2375 --log-level=infoYes
Docker Client VariablestextAreaBoxA list, separated by newline characters, of runtime environment variables for the Docker client. For example: DOCKER_HOST=tcp://192.0.2.100:2376Yes

Leave Swarm

Leave the swarm.

NameTypeDescriptionRequired
Docker Swarm Leave OptionstextBoxOptions for the Docker swarm leave command. For example: --forceYes
Docker OptionstextBoxOptions for the Docker client. For example: -H tcp://127.0.0.1:2375 --log-level=infoYes
Docker Client VariablestextAreaBoxA list, separated by newline characters, of runtime environment variables for the Docker client. For example: DOCKER_HOST=tcp://192.0.2.100:2376Yes

Manage Swarm Join Tokens

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

NameTypeDescriptionRequired
Docker Swarm Join-Token TypeselectBoxThe type of swarm token to manage, worker or managerYes
Docker Swarm Join-Token OptionstextBoxOptions for the Docker swarm join-token command. For example: --rotateYes
Docker OptionstextBoxOptions for the Docker client. For example: -H tcp://127.0.0.1:2375 --log-level=infoYes
Docker Client VariablestextAreaBoxA list, separated by newline characters, of runtime environment variables for the Docker client. For example: DOCKER_HOST=tcp://192.0.2.100:2376Yes

Promote Image

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

NameTypeDescriptionRequired
ImagetextBoxThe source image to be promoted to the destination registry. For example: ucds:6.1Yes
Destination ImagetextBoxThe tag or [image:]tag to apply to the image in the destination registry. New destination image and tag names should follow the syntax: [image:]tag. For example: ibmcom/ucds:6.2 or 6.2. If not specified, the value given in the Image field will be used as the new destination image name.Yes
Destination RegistrytextBoxThe Docker registry server the image will be promoted to. Leave blank to use Docker Hub.Yes
Destination User NametextBoxThe destination registry user name. When using IBM Containers, provide Bluemix Credentials. For Amazon ECR, use AWS access key as username and secret key as password.Yes
Destination PasswordsecureBoxThe destination registry password. When using IBM Containers, provide Bluemix Credentials. For Amazon ECR, use AWS access key as username and secret key as password.Yes
Destination Email AddresstextBoxThe destination registry email address. This field may be required if the Docker client attempts to prompt for the email interactively.Yes
Destination Allow Insecure ConnectionstextBoxSet this property to "true" to allow insecure registry connections to the destination regsitry.Yes
Destination Image Registry TypeselectBoxSpecify which API to connect with the Destination Image Registry. When using IBM Containers, provide Bluemix Credentials. For Amazon ECR, use AWS access key as username and secret key as password.Yes
Destination ICS APItextBoxThe api to use when logging in to IBM Container Service on BluemixYes
Destination ICS SpacetextBoxThe Bluemix space to use when logging in to IBM Container Service on BluemixYes
Destination ICS OrganizationtextBoxThe Bluemix organization to use when logging in to IBM Container Service on BluemixYes
Destination ICS apikeysecureBoxThe Bluemix apikey to use when logging in to IBM Container Service on BluemixYes
Destination CF_HOMEtextBoxWhen type is IBM Containers. The CF_HOME environment variable specifies the location of config.json for authentication.Yes
Destination AWS RegiontextBoxWhen type is Amazon ECR. Region to use when logging into AWS.Yes
Destination AWS Command Line InterfacetextBoxWhen 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.Yes
Docker OptionstextBoxOptions for the Docker client. For example: -H tcp://127.0.0.1:2375 --log-level=infoYes
Docker Client VariablestextAreaBoxA list, separated by newline characters, of runtime environment variables for the Docker client. For example: DOCKER_HOST=tcp://192.0.2.100:2376Yes
Source RegistrytextBoxThe Docker registry server the image will be promoted from. Leave blank to use the default, https://index.docker.io/v1/.Yes
Source User NametextBoxThe source registry user name. When using IBM Containers, provide Bluemix Credentials. For Amazon ECR, use AWS access key as username and secret key as password.Yes
Source PasswordsecureBoxThe source registry password. When using IBM Containers, provide Bluemix Credentials. For Amazon ECR, use AWS access key as username and secret key as password.Yes
Source Email AddresstextBoxThe source registry email address. This field may be required if the Docker client attempts to prompt for the email interactively.Yes
Source Allow Insecure ConnectionstextBoxSet this property to "true" to allow insecure registry connections to the source regsitry.Yes
Source Image Registry TypeselectBoxSpecify which API to connect with the Source Image Registry. When using IBM Containers, provide Bluemix Credentials. For Amazon ECR, use AWS access key as username and secret key as password.Yes
Destination ICS APItextBoxThe api to use when logging in to IBM Container Service on BluemixYes
Source ICS SpacetextBoxThe Bluemix space to use when logging in to IBM Container Service on BluemixYes
Source ICS OrganizationtextBoxThe Bluemix organization to use when logging in to IBM Container Service on BluemixYes
Source ICS apikeysecureBoxThe Bluemix apikey to use when logging in to IBM Container Service on BluemixYes
Source CF_HOMEtextBoxWhen type is IBM Containers. The CF_HOME environment variable specifies the location of config.json for authentication.Yes
Source AWS RegiontextBoxWhen type is Amazon ECR. Region to use when logging into AWS.Yes
Source AWS Command Line InterfacetextBoxWhen 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.Yes

Pull Docker Image

Retrieve an image from a Docker registry.

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

Push Docker Image

Upload an image to a Docker registry.

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

Remove Config

Remove one or more configuration files.

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

Remove Docker Container

Remove a Docker container.

NameTypeDescriptionRequired
Docker ContainertextBoxThe name or ID of the container to remove.Yes
Docker Remove OptionstextBoxOptions for the Docker rm command. For example: --link -fYes
Docker OptionstextBoxOptions for the Docker client. For example: -H tcp://127.0.0.1:2375 --log-level=infoYes
Docker Client VariablestextAreaBoxA list, separated by newline characters, of runtime environment variables for the Docker client. For example: DOCKER_HOST=tcp://192.0.2.100:2376Yes

Remove Secret

Remove one or more secrets.

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

Remove Service

Remove one or more services.

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

Remove Stack

Remove the specified stack.

NameTypeDescriptionRequired
Stack NametextBoxThe name of the stack to removeYes
Docker OptionstextBoxOptions for the Docker client. For example: -H tcp://127.0.0.1:2375 --log-level=infoYes
Docker Client VariablestextAreaBoxA list, separated by newline characters, of runtime environment variables for the Docker client. For example: DOCKER_HOST=tcp://192.0.2.100:2376Yes

Run Docker Container

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

NameTypeDescriptionRequired
ImagetextBoxThe image to create the container from.Yes
CommandtextBoxThe command and arguments to run inside the new container.Yes
Container NametextBoxThe name to assign to the container. If no name is specified, an ID is assigned automatically. Use the containerId output property to reference the new container.Yes
Run OptionstextAreaBoxOptions for the Docker run command. For example: --publish-all --restart=noYes
Docker OptionstextBoxOptions for the Docker client. For example: -H tcp://127.0.0.1:2375 --log-level=infoYes
Docker Client VariablestextAreaBoxA list, separated by newline characters, of runtime environment variables for the Docker client. For example: DOCKER_HOST=tcp://192.0.2.100:2376Yes

Scale Service

Scale one or multiple replicated services.

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

Start Docker Container

Start a Docker container.

NameTypeDescriptionRequired
Docker ContainertextBoxThe name or ID of the container to start.Yes
Start OptionstextBoxOptions for the Docker start command. For example: --attach=falseYes
Docker OptionstextBoxOptions for the Docker client. For example: -H tcp://127.0.0.1:2375 --log-level=infoYes
Docker Client VariablestextAreaBoxA list, separated by newline characters, of runtime environment variables for the Docker client. For example: DOCKER_HOST=tcp://192.0.2.100:2376Yes

Stop Docker Container

Stop a Docker container.

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

Tag Docker Image

Tag an image into a repository.

NameTypeDescriptionRequired
ImagetextBoxThe name of the image to tag. For example: ubuntu:latestYes
TagtextBoxThis 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 OptionstextBoxOptions for the Docker tag command. docker tag Options source destinationYes
Docker OptionstextBoxOptions for the Docker client. For example: -H tcp://127.0.0.1:2375 --log-level=infoYes
Docker Client VariablestextAreaBoxA list, separated by newline characters, of runtime environment variables for the Docker client. For example: DOCKER_HOST=tcp://192.0.2.100:2376Yes

Update Service

Update a service.

NameTypeDescriptionRequired
Service NametextBoxThe service to update.Yes
Docker Service Update OptionstextBoxOptions for the Docker service update command. For example: --image stringYes
Docker OptionstextBoxOptions for the Docker client. For example: -H tcp://127.0.0.1:2375 --log-level=infoYes
Docker Client VariablestextAreaBoxA list, separated by newline characters, of runtime environment variables for the Docker client. For example: DOCKER_HOST=tcp://192.0.2.100:2376Yes

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.