---
title: Docker and other container environments: Install C SDK
source: https://docs.newrelic.com/docs/apm/agents/c-sdk/install-configure/docker-other-container-environments-install-c-sdk
---

> #### ⚠️ EOL NOTICE
>
> From April 2022, we don't support the C SDK capability. For more details, see our [Support Forum post](https://support.newrelic.com/s/hubtopic/aAX8W0000008d0r/q1-bulk-eol-announcement-fy23).

You can install the [New Relic C SDK](https://docs.newrelic.com/docs/agents/c-sdk/get-started/introduction-c-sdk) on a Docker container (or other container) to monitor one or more of your C applications.

## Install C SDK in container environment [#install-container]

Requirements:

-   Meet [C SDK requirements](https://docs.newrelic.com/docs/agents/c-sdk/get-started/c-sdk-compatibility-requirements)
-   C SDK version 1.2 or higher

> #### ⚠️ CAUTION
>
> Data transmitted from the agent to the daemon is **not** encrypted. We recommend only using a private network connection between the agent and daemon. This only applies when the agent and daemon are running on different hosts.

To install C SDK for a container environment, we recommend installing the [C SDK daemon](https://docs.newrelic.com/docs/agents/c-sdk/get-started/introduction-c-sdk#architecture) on a separate docker container:

1.  Install the daemon by cloning the [C SDK repository](https://github.com/newrelic/c-sdk) and building the daemon. This is done most effectively via the command `make daemon`. See the [README.md](https://github.com/newrelic/c-sdk/blob/master/README.md#building-the-c-sdk) for further details.

    If you are using Docker, you can use the [C SDK daemon image on Dockerhub](https://hub.docker.com/r/newrelic/c-daemon).
2.  Start the daemon using `--address` and `--watchdog-foreground` arguments. The `--address` argument is used to set a port where the daemon is accepting connections. The `--watchdog-foreground` argument ensures that the daemon runs in the foreground.

Then, use the C SDK in your containerized application:

1.  Follow the steps to [add the C SDK to your code](https://docs.newrelic.com/docs/agents/c-sdk/install-configure/install-c-sdk-compile-link-your-code).
2.  Point the C SDK to the daemon by adding a [`newrelic_init` call](https://newrelic.github.io/c-sdk/libnewrelic_8h.html#a03f07e64a51b5f0cd51caa4f28c8b6c1) and passing a valid `address` argument. The value for this argument must be `HOST:PORT`, where `HOST` is the name or IP address of the host where the daemon is running, and `PORT` is the port number where the daemon is listening.
