# No such container found when running docker exec service

**URL:** <https://forum.getodk.org/t/no-such-container-found-when-running-docker-exec-service/34829>\
**Category:** Support\
**Created:** [August 23, 2021, 11:52am UTC](https://forum.getodk.org/t/no-such-container-found-when-running-docker-exec-service/34829 "2021-08-23T11:52:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Timon](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/timon/32/16901_2.png) [@Timon](https://forum.getodk.org/u/Timon)\
**Post date:** [August 23, 2021, 11:52am UTC](https://forum.getodk.org/t/no-such-container-found-when-running-docker-exec-service/34829/1 "2021-08-23T11:52:19Z")

</div>

> [@Errors with sending forms to ODK Central because hard drive is full](https://forum.getodk.org/t/errors-with-sending-forms-to-odk-central-because-hard-drive-is-full/32661/5):
>
> ```auto
> docker exec service sh -c "find /tmp/tmp-* -type f -mmin +60 -delete";
> 
> ```

When I run this command, I receive the following error:

`Error: No such container: service`

What could be the problem? A quick google does not give any answers.

---

<div class="post-metadata">

**Author:** ![Florian\_May](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/florian_may/32/7758_2.png) [@Florian\_May](https://forum.getodk.org/u/Florian_May)\
**Post date:** [August 23, 2021, 12:04pm UTC](https://forum.getodk.org/t/no-such-container-found-when-running-docker-exec-service/34829/2 "2021-08-23T12:04:16Z")

</div>

Have you built the containers with `docker-compose build`? What does `docker image ls` show?

---

<div class="post-metadata">

**Author:** ![Timon](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/timon/32/16901_2.png) [@Timon](https://forum.getodk.org/u/Timon)\
**Post date:** [August 23, 2021, 12:09pm UTC](https://forum.getodk.org/t/no-such-container-found-when-running-docker-exec-service/34829/3 "2021-08-23T12:09:01Z")

</div>

![image](https://getodk.b-cdn.net/uploads/default/original/3X/2/c/2c93873adbc92720aed9753ee62567f2f688d448.png)  
This is the snapshot of `docker image ls`

I used the steps of the [ODK guide for digital ocean](https://docs.getodk.org/central-install-digital-ocean/) which indeed includes `docker-compose build`.

I cant [upgrade](https://docs.getodk.org/central-upgrade/) the server either with `git pull`. Perhaps I deleted some crucial files...

---

<div class="post-metadata">

**Author:** ![yanokwa](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/yanokwa/32/1695_2.png) [@yanokwa](https://forum.getodk.org/u/yanokwa)\
**Post date:** [August 23, 2021, 9:46pm UTC](https://forum.getodk.org/t/no-such-container-found-when-running-docker-exec-service/34829/4 "2021-08-23T21:46:36Z")

</div>

The command on newer versions of Central will be `docker exec central_service_1 sh -c "find /tmp/tmp-* -type f -mmin +60 -delete";`

That said, you shouldn't need to run this command because newer version of Central don't have the bug the command fixes.
