# Running an Application in Docker or Binary

**URL:** https://hub.mender.io/t/running-an-application-in-docker-or-binary/4203
**Category:** General Discussions
**Created:** [October 19, 2021, 1:13pm UTC](https://hub.mender.io/t/running-an-application-in-docker-or-binary/4203 "2021-10-19T13:13:22Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![jon\_reyes](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/jon_reyes/32/1394_2.png) [@jon\_reyes](https://hub.mender.io/u/jon_reyes)
#### Post date: [October 19, 2021, 1:13pm UTC](https://hub.mender.io/t/running-an-application-in-docker-or-binary/4203/1 "2021-10-19T13:13:22Z")

</div>

What would be the best way to deploy a binary file as an application that boots on start and auto restarts on failure with artifacts? It can be in docker or uploading the binary directly as an artifact but I am trying to understand the workflow with mender.

---

<div class="post-metadata">

### Author: ![kacf](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/kacf/32/146_2.png) [@kacf](https://hub.mender.io/u/kacf)
#### Post date: [October 21, 2021, 7:12am UTC](https://hub.mender.io/t/running-an-application-in-docker-or-binary/4203/2 "2021-10-21T07:12:37Z")

</div>

You should look into the [docker Update Module](https://hub.mender.io/t/docker/324). With it you can run Docker containers and update them using Mender Artifacts. If you need to customize anything about the container launching you can use [state scripts](https://docs.mender.io/development/artifact-creation/state-scripts) on top of that.
