# (Re)Installing Discourse with Docker on CentOS 7

**URL:** <https://meta.discourse.org/t/re-installing-discourse-with-docker-on-centos-7/65359>\
**Category:** Self-hosting\
**Created:** [2017 年 6 月 29 日午後 8:17 UTC](https://meta.discourse.org/t/re-installing-discourse-with-docker-on-centos-7/65359 "2017-06-29T20:17:07Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![c3iq](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/c3iq/32/74594_2.png) [@c3iq](https://meta.discourse.org/u/c3iq)\
**Post date:** [2017 年 7 月 3 日午前 8:13 UTC](https://meta.discourse.org/t/re-installing-discourse-with-docker-on-centos-7/65359/7 "2017-07-03T08:13:47Z")

</div>

After I submitted my initial post I was pointed to similar ones. As a result I **re-formatted the bigger disk for XFS with d\_type functionality enabled**. And we put:

```
{
  "storage-driver": "overlay2",
  "storage-opts": [
    "overlay2.override_kernel_check=true"
  ]
}

```

in /etc/docker/daemon.json from [https://docs.docker.com/engine/userguide/storagedriver/overlayfs-driver/#configure-docker-with-the-overlay-or-overlay2-storage-driver](https://docs.docker.com/engine/userguide/storagedriver/overlayfs-driver/#configure-docker-with-the-overlay-or-overlay2-storage-driver)

This allowed us to install the container with the base discourse. After we added the socket template we got an error related to Nginx starting up in the container but quickly fixed that. We then restored the Discourse backup and now know how to resurrect the site in production. Thanks for your help.

---

_[View the full topic](https://meta.discourse.org/t/re-installing-discourse-with-docker-on-centos-7/65359)._
