# Does web based updates replace rebuilding the container?

**URL:** <https://meta.discourse.org/t/does-web-based-updates-replace-rebuilding-the-container/102090>\
**Category:** Self-hosting\
**Created:** [November 15, 2018, 6:47am UTC](https://meta.discourse.org/t/does-web-based-updates-replace-rebuilding-the-container/102090 "2018-11-15T06:47:22Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![vitorl](https://avatars.discourse-cdn.com/v4/letter/v/57b2e6/32.png) [@vitorl](https://meta.discourse.org/u/vitorl)\
**Post date:** [November 15, 2018, 10:59am UTC](https://meta.discourse.org/t/does-web-based-updates-replace-rebuilding-the-container/102090/7 "2018-11-15T10:59:28Z")

</div>

Ok I’m trying to automate this, with a cronjob to rebuild the container after every reboot.

`@reboot sleep 300 && /opt/discourse/launcher rebuild app > /root/discord-update.log`

It seems to be working, but for some reason the log file get cut after `Removing old container`.

Is there some kind of recommended way to get automatic updates working?

I had to wait 300 seconds for the docker daemon to start. With this settings it should take 10 min after reboot to be back on air. Rebuilding takes 5 min with a SSD and 2 vCPU.

---

_[View the full topic](https://meta.discourse.org/t/does-web-based-updates-replace-rebuilding-the-container/102090)._
