opened
dwilkie
username_0
## Description

## Logs

`CloudWatchLog Groups/aws/elasticbeanstalk/freeswitch-production/var/log/ecs/ecs-agent.logi-0bb7863548a55efa5`

```
2017-11-27T22:55:30Z [WARN] Error with docker; stopping container freeswitch(username_0/freeswitch-rayo:somleng.ews1294.info) (STOPPED->STOPPED) for task awseb-freeswitch-production-gejeu9jqvp:200 arn:aws:ecs:ap-southeast-1:314673618878:task/e8e97f26-d819-4322-9ee8-305ae384dcc6, Status: (STOPPED->STOPPED) Containers: [freeswitch (STOPPED->STOPPED),]: API error (500): devmapper: Thin Pool has 0 free data blocks which is less than minimum required 2428 free data blocks. Create more free space in thin pool or use dm.min_free_space option to change behavior
```
Docker Daemon Shutdown Issue
issue
created
dwilkie
username_0
## Issue 18/1/2018

### Analysis

Docker daemon is running
comment
closed
dwilkie
username_0
issue
created
dwilkie
username_0
https://www.pivotaltracker.com/story/show/154896504
comment
reopened
dwilkie
username_0
## Description

Docker Daemon failed to restart

## Logs

`CloudWatchLog Groups/aws/elasticbeanstalk/freeswitch-production/var/log/ecs/ecs-agent.logi-0bb7863548a55efa5`

```
2017-11-27T22:55:30Z [WARN] Error with docker; stopping container freeswitch(username_0/freeswitch-rayo:somleng.ews1294.info) (STOPPED->STOPPED) for task awseb-freeswitch-production-gejeu9jqvp:200 arn:aws:ecs:ap-southeast-1:314673618878:task/e8e97f26-d819-4322-9ee8-305ae384dcc6, Status: (STOPPED->STOPPED) Containers: [freeswitch (STOPPED->STOPPED),]: API error (500): devmapper: Thin Pool has 0 free data blocks which is less than minimum required 2428 free data blocks. Create more free space in thin pool or use dm.min_free_space option to change behavior
```

http://docs.aws.amazon.com/AmazonECS/latest/developerguide/CannotCreateContainerError.html
https://stackoverflow.com/questions/26753087/docker-how-to-analyze-a-containers-disk-usage

Look in container

```
$ docker exec -it <container-id> /bin/bash 
```

From inside docker container:

```
$ find / -xdev -type f -size +10M
```

Inspect disk usage of container:

```
$ docker system df -v
```


## Todo

* Have alarm trigger autoscaling action
* Solve underlying problem. FreeSWITCH logs should be rotated

## Done

* Create Alarm.
  * Alarm triggers when Memory utilization of docker daemon <= 0 for one period
Docker Daemon Shutdown Issue
issue