# Docker-Compose Startup Delay

**URL:** <https://forums.balena.io/t/docker-compose-startup-delay/100607>\
**Category:** Product support\
**Tags:** docker-compose\
**Created:** [April 27, 2020, 11:17am UTC](https://forums.balena.io/t/docker-compose-startup-delay/100607 "2020-04-27T11:17:37Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![zvin](https://avatars.discourse-cdn.com/v4/letter/z/a5b964/32.png) [@zvin](https://forums.balena.io/u/zvin)\
**Post date:** [April 27, 2020, 11:58am UTC](https://forums.balena.io/t/docker-compose-startup-delay/100607/2 "2020-04-27T11:58:42Z")

</div>

Hello,  
The `command` key of a docker-compose file overrides the command of the container, it is not “prepended”: [https://docs.docker.com/compose/compose-file/#command](https://docs.docker.com/compose/compose-file/#command)  
You need to update the Dockerfile in the `box-ftp` folder and change the `CMD` or `ENTRYPOINT` here to point to a shell script that will `sleep 5` then run the command it is supposed to run.  
If `sleep` is not available, you need to install it in the Dockerfile. On debian it is in the `coreutils` package for example.

---

_[View the full topic](https://forums.balena.io/t/docker-compose-startup-delay/100607)._
