Create and Delete Containers
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.
UI
CLI
API
- 1.Click on + Create new container in the Workload configuration view.
- 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.Choose a name for the Container. This name can not be changed later.
- 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
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.
UI
CLI
API
- 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.
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.
UI
CLI
API
- 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
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.
Last modified 4mo ago