Links

Create and Delete Containers

Introduction

After creating a new Workload in your App, you can add one or more Containers from the Workload Details Screen. These can be based on images imported to Humanitec through a connected CI pipeline or pulled directly from an external registry not registered with Humanitec.

Create a new Container

UI
CLI
API
You can add a Container to your Workload from the Workload Details Screen.
  1. 1.
    Click on + Create new container in the Workload configuration view.
  2. 2.
    Choose the Container image you want to use in the Workload (Additional sidecar containers can be created later). You have the option to:
    • Select an image registered with Humanitec.
    • Add an image by image name. To do so enter the full image name. A valid name is made up of slash-separated name components and can optionally be prefixed by a registry hostname or followed by a port e.g. myregistry:5000/postgres/httpd:1.0.
  3. 3.
    Choose a name for the Container. This name can not be changed later.
  4. 4.
    Click Create.
How to add a Container to your Workload steps 1-2
How to add a Container to your Workload steps 3-4
Our CLI is currently in closed beta. Please contact us if you want to learn more.
Creating a new Container for a Workload is the equivalent to adding a container to a Deployment Set in the API. This can be done via a Deployment Delta.

Add Sidecar Containers

UI
CLI
API
You can add Sidecar Containers to your Workload from the Workload Details Screen.
  • Click on a plus icon next to your container in the workload configuration view.
  • Select the container image, give it a name, and click Create as described in the create a new container guide above.
  • You will see a new container appear next to your current container. You can configure your containers separately by clicking on their names.
You can configure each Container in a Workload separately.
Our CLI is currently in closed beta. Please contact us if you want to learn more.
Creating a Sidecar Container for a Workload is the equivalent to adding a container to a Deployment Set in the API. This can be done via a Deployment Delta.

Delete Containers

UI
CLI
API
You can delete a Sidecar Container from the Workload Details Screen.
  • Click on the 3 dots next to the Container you want to delete.
  • Select Remove from the dropdown menu.
Example to remove a Sidecar Container from a Workload
Our CLI is currently in closed beta. Please contact us if you want to learn more.
Deleting a Container from a Workload is the equivalent to removing a container from a Deployment Set in the API. This can be done via a Deployment Delta.