You can export a container template as a Docker Compose YAML file or a Containers for vRealize Automation YAML file.
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.
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.
- Click the Containers tab.
- 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.
- Point to a template and click its Export icon.
- When prompted, select an output format type:
This format adheres to the blueprint YAML format used in the vRealize Automation composition-service API.
This format adheres to the YAML format used in the Docker Compose application.
- Click Export.
- Save the file or open it with an appropriate application when prompted.