# Docker Information

The emaildelivery.com platform runs as a collection of Docker containers using Docker orchestration. A comprehensive overview of Docker is outside of the scope of this document.&#x20;

To view your running Docker containers and their resource utilization, run the following command:

```
docker stats --no-stream
```

You'll see the following containers running:

<table><thead><tr><th width="201"></th></tr></thead><tbody><tr><td>edcom-proxy</td></tr><tr><td>edcom-segments</td></tr><tr><td>edcom-tasks</td></tr><tr><td>edcom-webhooks</td></tr><tr><td>edcom-api</td></tr><tr><td>edcom-cron</td></tr><tr><td>edcom-database</td></tr><tr><td>edcom-cache</td></tr><tr><td>edcom-screenshot</td></tr><tr><td>edcom-smtprelay</td></tr></tbody></table>

By default, Docker containers write their output (STDOUT and STDERR) to the console. This behavior is similar to running a process in your command line interface, where it prints output to your terminal.

{% hint style="info" %}
**Logging**

If you run a Docker container in detached mode (with the `-d` or `--detach` option), the output won't be displayed in your terminal because the container runs in the background.
{% endhint %}

Access the output of a running docker container with the **docker logs** command:&#x20;

```
docker logs edcom-proxy
```

{% hint style="info" %}
By default, when a docker container is started, container output is logged ephemerally in the following directory structure.

&#x20;/var/lib/docker/containers/\[container-id]/\[container-id]-json.log
{% endhint %}

{% hint style="warning" %}
**Container logs are automatically deleted by docker when the container is shut down**&#x20;
{% endhint %}

To bring your platform up run the following command in the edcom-install directory:&#x20;

```
docker compose up -d
```

To bring your platform down run the following command in the edcom-install directory:

```
docker compose down 
```

To verify you have the emaildelivery.com docker images loaded, run the following command:

```
docker images
```

To load the emaildelivery.com docker images required to bring up your platform with docker compose, run the following command in the edcom-install directory:

```
./load_images.sh
```

As a nuclear option troubleshooting step, you can destroy all of your docker images and containers in one go to start over with the following command:&#x20;

{% code overflow="wrap" %}

```
docker kill $(docker ps -q) ; docker rm $(docker ps -a -q) ; docker rmi $(docker images -q)
```

{% endcode %}
