Appending a new profile to an existing container

Solution Verified - Updated -

Environment

  • Fabric 7.0.1
  • Fabric 7.0.2

Issue

How to append a new profile to an existing container without loosing the profiles that are already configured.

Resolution

In 7.0.1, you will need to use the fabric:container-change-profile:

If the container is already configured with the default profile and you want to add the mq and camel profiles, you would run the following command:

fabric:container-change-profile my-container default mq camel

In 7.0.2, the fabric:container-add-profile command was introduced to make this easier which does not require you to specify the containers existing profiles:

In this version you can add profiles to containers as follows:

fabric:container-add-profile my-container mq camel

All existing profiles will be retained.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.