---
title: Manage Containers
slug: bhdo/manage-containers
createdAt: 2022-09-23T14:47:00.000Z
---

You can run and manage containers by navigating to **Applications&#x20;**>**&#x20;Containers**.&#x20;

# Run a Container

You can add and run a container locally using the *Run&#x20;*&#x63;ommand. The named container pulls the container from the Docker registry and it appears on the Container pane, running locally.

Belden Horizon Data Operations supports Docker Registry v2.

## Before You Begin

- You must do one of the following:
  - [Create a Docker Image to Deploy to Your Private Repository](https://public-docs.litmus.io/bhdo/product-features/applications/images/download-an-image/create-docker-image-to-deploy-to-repository)&#x20;
  - [Upload an Image](https://public-docs.litmus.io/bhdo/upload-an-image) [](https://docs.litmus.io/LitmusEdge/UserGuide/current-le/Content/ED-Applications/t-edapp-upload-an-image.htm) into Belden Horizon Data Operations&#x20;
  - [Download an Image](https://public-docs.litmus.io/bhdo/download-an-image)&#x20;
- You must also [Add a Registry](https://public-docs.litmus.io/bhdo/add-a-registry) entry.

**To run a container:**

1. Navigate to **Applications&#x20;**> **Containers**.&#x20;
2. From the *Containers&#x20;*&#x70;ane, click **Run**.&#x20;
   The *Enter command to run* field appears.&#x20;

   ::Image[]{src="https://api.archbee.com/api/optimize/SSUUxKZUk9bFTEPNn_6Zo/b-dGcuNaEJD1C_xRP9smo_run-container.png" size="80" width="1404" height="566" caption="The Run button" position="center" showCaption="true"}
3. Enter the docker run command for the selected application, and then click **Run**.

:::hint{type="info"}
**Example**: `docker run -d --name hello hello-world`
:::

The named container appears in the *Containers&#x20;*&#x70;ane, and its state is running. The container runs locally.

# Manage individual containers

Refer to the image and callouts below for management options for containers.&#x20;

![](https://api.archbee.com/api/optimize/SSUUxKZUk9bFTEPNn_6Zo/ElAiOSYbgq0ZXGE6JY1f0_image.png "Management options for containers")

\[1] **Copy port number**

\[2] **Start and Stop container**: Once stopped, the container shows an *Exited&#x20;*&#x73;tatus.&#x20;

\[3] **Pause and Un-pause container**

\[4] **Remove container**: The container is removed from the Containers pane.&#x20;

\[5] **Show container log**: This is similar to the logs available from the Overview pane but displays directly from the container environment. See the "View Container Logs" section below for more information.&#x20;

\[6] **Inspect**: Displays the configuration, attached volumes, and policies included in the container. From the specified container pane, you can reload the container.

\[7] **Terminal**: You can open a terminal console for a specified container. The terminal is normally used for diagnostic purposes. It allows you to modify the application's configuration, though this is not recommended.

\[8\[ **Container top**: You can view information about the container services that are running. This is normally used by developers.

# View Container Logs

When you click the **Show container log** icon, the *Log* pane displays.&#x20;

You can click the **Filter&#x20;**&#x69;con to view more options.&#x20;

::Image[]{src="https://api.archbee.com/api/optimize/SSUUxKZUk9bFTEPNn_6Zo/IHJLSBti0Z0XY3UCNeAzm_filter-container-log.png" size="80" width="1227" height="219" caption="The filter icon for container logs" position="center" showCaption="true"}

Refer to the image and callouts below for filter options for container logs.&#x20;

::Image[]{src="https://api.archbee.com/api/optimize/SSUUxKZUk9bFTEPNn_6Zo/7PpoXQrhKnOOvNpe8PCbq_filter-container-log2.png" size="80" width="806" height="566" caption="Filter options for logs" position="center" showCaption="true"}

\[1] **Fetch Log**: You can review a log for the specified time period you select (All logs, Last Day, Last 4 hours, Last hour, or Last 10 minutes).&#x20;

\[2] **Search**: After you *Fetch a log* or *Set time units for a log*, you can enter search terms to find text in all the log entries defined.&#x20;

\[3] **Advanced Settings**: Allows you to set time units for a log. Enter values for **Since&#x20;**&#x61;nd **Until**, and then select options from the **Units&#x20;**&#x64;rop-down list. The options are: ns, µs, ms, s, m, h, or Unix Timestamp.&#x20;

