Prerequisites for using the Docker plugin
This topic describes the steps required to use the Deploy Docker plugin. First, you need to create a Docker registry and then configure the necessary settings in Deploy to integrate with the registry.
Create a Docker registry
- Click Explorer in the top menu.
- In the left pane, hover over Configuration and click
- Click New and select
docker.Registry
. - Fill in the required fields with the name, the registry url, username, and password.
Note When you deploy any container or service to an environment, Deploy will login to the associated registry to retrieve the images.
Configure Deploy to connect to Docker Engine
-
Click Explorer in the top menu.
-
In the left pane, hover over Infrastructure and click
-
Click New and select
docker.Engine
. -
Fill in the required fields with the name and the host.
-
If TLS is enabled on your host, select the Enable TLS option.
-
Go to the Certificates section. Copy the contents of
cert.pem
to Certificate field,key.pem
to Key field, andca.pem
to Certification Authority field.Note If the host system is TLS enabled, the above certificates are mandatory.
-
Go to Registries section and associate the registry created in the above step under configuration. {% comment %}
-
Right click the docker.Engine you created and execute Check Connection. {% endcomment %}
-
Add the new
docker.Engine
infrastructure item to an environment.
Configure Deploy to connect to Docker Swarm
-
Click Explorer in the top menu.
-
In the left pane, hover over Infrastructure and click
-
Click New and select
docker.SwarmManager
. -
Fill in the required fields with the name and the url of the Docker Swarm Leader .
-
If TLS is enabled on your Leader, select the Enable TLS option.
-
Go to the Certificates section. In the system home folder, go to
.docker
>machine
>certs
and copy the contents ofcert.pem
to Certificate field,key.pem
to Key field, andca.pem
to Certification Authority field.Note If the host system is TLS enabled, the above certificates are mandatory.
-
Go to Registries section and associate the registry created in the above step under configuration. {% comment %}
-
Right click the docker.Engine you created and execute Check Connection. {% endcomment %}
-
Add the new docker.SwarmManager infrastructure item to an environment.