You can export a container template as a Docker Compose YAML file or a Containers for vRealize Automation YAML file.

Before you begin

  • Verify that Containers for vRealize Automation is enabled in your supported vRealize Automation deployment.

  • Log in to the vRealize Automation console as a container administrator.

For information about the YAML format used by vRealize Automation service REST APIs, see vRealize Automation API Reference.

About this task

You can import a template, modify it programmatically by using the vRealize Automation REST API or vRealize CloudClient, or graphically in Containers. You can then export the modified file. For example, you can import in Docker Compose format and export in the blueprint YAML format used in the vRealize Automation composition-service API. However, some configurations that are specific to Containers, such as health configuration and affinity constraints are not included if you export the template in Docker Compose format.

Procedure

  1. Click the Containers tab.
  2. Click Templates in the left pane.

    A list displays the templates and images that are available for provisioning.

    • Configured templates in the Images view.

    • Existing or custom templates in the Template view.

    • All available templates and images based on your specified registries in the All view.

    The Import and Export options are also available to import or export templates and images.

  3. Point to a template and click its Export icon.
  4. When prompted, select an output format type:
    • YAML Blueprint

      This format adheres to the blueprint YAML format used in the vRealize Automation composition-service API.

    • Docker Compose

      This format adheres to the YAML format used in the Docker Compose application.

  5. Click Export.
  6. Save the file or open it with an appropriate application when prompted.