# Installing Docker (CentOS 7 + OpenVZ)

**URL:** https://meta.discourse.org/t/installing-docker-centos-7-openvz/30765
**Category:** Self-hosting
**Created:** [July 4, 2015, 2:00am UTC](https://meta.discourse.org/t/installing-docker-centos-7-openvz/30765 "2015-07-04T02:00:46Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![rtainc](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rtainc/32/116387_2.png) [@rtainc](https://meta.discourse.org/u/rtainc)
#### Post date: [July 4, 2015, 2:00am UTC](https://meta.discourse.org/t/installing-docker-centos-7-openvz/30765/1 "2015-07-04T02:00:46Z")

</div>

Hi, I’ve been trying to install Discourse for a couple of hours now, and I decided to turn to the forums to see if anyone has had a similar problem and knows how to help.

I’ve installed Docker on my VPS with `yum install docker` and it successfully installed. Unfortunately if I start it (`docker -d`) I get `Error initializing network controller: Error creating default "bridge" network: operation not supported`. Is this due to OpenVZ restrictions or an outdated kernel? I hope that the minor kernel patches don’t affect the install as it cannot be updated with OpenVZ.

```
$ uname -a
Linux dime 2.6.32-042stab102.9

```

---

<div class="post-metadata">

### Author: ![nahtnam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nahtnam/32/122073_2.png) [@nahtnam](https://meta.discourse.org/u/nahtnam)
#### Post date: [July 4, 2015, 2:02am UTC](https://meta.discourse.org/t/installing-docker-centos-7-openvz/30765/2 "2015-07-04T02:02:39Z")

</div>

Docker doesn’t work with openvz. If you want to use openvz, you will have to self host it with something like [this](https://github.com/pl3bs/dontdockmebro).

---

<div class="post-metadata">

### Author: ![rtainc](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rtainc/32/116387_2.png) [@rtainc](https://meta.discourse.org/u/rtainc)
#### Post date: [July 4, 2015, 2:09am UTC](https://meta.discourse.org/t/installing-docker-centos-7-openvz/30765/3 "2015-07-04T02:09:31Z")

</div>

Thank you - I was looking for something similar. Unfortunately that is for Debian-based systems (with apt) so I’ll try and convert that to work on CentOS. Otherwise I’ll have to keep looking.

---

<div class="post-metadata">

### Author: ![nahtnam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nahtnam/32/122073_2.png) [@nahtnam](https://meta.discourse.org/u/nahtnam)
#### Post date: [July 4, 2015, 2:21am UTC](https://meta.discourse.org/t/installing-docker-centos-7-openvz/30765/4 "2015-07-04T02:21:18Z")

</div>

Why not just ask your hosting provider to switch you to Ubuntu? IMO ubuntu is much better.

---

<div class="post-metadata">

### Author: ![rtainc](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rtainc/32/116387_2.png) [@rtainc](https://meta.discourse.org/u/rtainc)
#### Post date: [July 4, 2015, 2:21am UTC](https://meta.discourse.org/t/installing-docker-centos-7-openvz/30765/5 "2015-07-04T02:21:50Z")

</div>

I’ve always used CentOS. I might just try here in a minute, though.

---

<div class="post-metadata">

### Author: ![Yassine\_Yousfi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/yassine_yousfi/32/195913_2.png) [@Yassine\_Yousfi](https://meta.discourse.org/u/Yassine_Yousfi)
#### Post date: [August 25, 2016, 2:06pm UTC](https://meta.discourse.org/t/installing-docker-centos-7-openvz/30765/6 "2016-08-25T14:06:08Z")

</div>

> [@nahtnam](#):
>
> openvz

Hello, may i ask please.

I have openVZ, but that solution you posted requires using Mandrill…Etc, and sounds more like a none official hack!  
are there better solutions to run docker (obviously discourse) on my OpenVZ VPZ?

regards

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [August 25, 2016, 2:28pm UTC](https://meta.discourse.org/t/installing-docker-centos-7-openvz/30765/7 "2016-08-25T14:28:44Z")

</div>

> [@Yassine\_Yousfi](#):
>
> are there better solutions to run docker (obviously discourse) on my OpenVZ VPZ?

No, you should change to KVM.

---

<div class="post-metadata">

### Author: ![Yassine\_Yousfi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/yassine_yousfi/32/195913_2.png) [@Yassine\_Yousfi](https://meta.discourse.org/u/Yassine_Yousfi)
#### Post date: [August 25, 2016, 2:36pm UTC](https://meta.discourse.org/t/installing-docker-centos-7-openvz/30765/8 "2016-08-25T14:36:09Z")

</div>

too bad, but what if i have no other option, are there any workarounds?

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [August 25, 2016, 2:46pm UTC](https://meta.discourse.org/t/installing-docker-centos-7-openvz/30765/9 "2016-08-25T14:46:21Z")

</div>

> [@Yassine\_Yousfi](#):
>
> too bad, but what if i have no other option, are there any workarounds?

> [@Yassine\_Yousfi](#):
>
> and sounds more like a none official hack!

Workaround === none official hack

You can get a VPS free trial on AWS, Google Cloud, Azure. Or pay $0.015/hr on Digital Ocean. That way you test and see if you really like Discourse before commiting more money.

---

<div class="post-metadata">

### Author: ![Yassine\_Yousfi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/yassine_yousfi/32/195913_2.png) [@Yassine\_Yousfi](https://meta.discourse.org/u/Yassine_Yousfi)
#### Post date: [August 25, 2016, 3:03pm UTC](https://meta.discourse.org/t/installing-docker-centos-7-openvz/30765/10 "2016-08-25T15:03:21Z")

</div>

i like it already, and in fact the problem is not investing more money 🙂 but rather, i would love to make it as a research project that i can clone and work on 🙂  
i’ve built a forum for the last 2 years or so it was running, and it was based on PHP, now i want to take a step ahead, and upgrade the entire platform i use now (it’s a big step for me to take).  
so mostly i will be developing the beta version on secondary domain, and testing with it till it’s 100% perfect before upgrading, i have tons of content and i don’t think i can try developing discourse on my VPS directly.  
so maybe a workaround would be perfect for me. as the beta development will take about a year or so.

And btw i really hate the idea of running Discourse inside a OS (Doker) inside an OS (VPS) inside an actual OS! is it simply doesn’t make sense! (though i completely understand the idea behind that - according to discourse team-) but it wont work for me that way.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [August 25, 2016, 3:20pm UTC](https://meta.discourse.org/t/installing-docker-centos-7-openvz/30765/11 "2016-08-25T15:20:28Z")

</div>

If you want to develop, run on your local machine. I have installed on my machine, and it’s crazy fast when everything is set up. Also you can try a change on your plugin and test it really fast. You should not use docker to do any development.

Also, Docker doesn’t do any virtualization (like VirtualBox), it’s _just_ isolation. But that’s just off-topic.

---

<div class="post-metadata">

### Author: ![Lakuma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lakuma/32/132029_2.png) [@Lakuma](https://meta.discourse.org/u/Lakuma)
#### Post date: [February 16, 2019, 1:17pm UTC](https://meta.discourse.org/t/installing-docker-centos-7-openvz/30765/12 "2019-02-16T13:17:49Z")

</div>

I know this is an old topic, for people still looking to install Docker on with OpenVZ look here: [https://wiki.openvz.org/Docker\_inside\_CT](https://wiki.openvz.org/Docker_inside_CT)
