# Docker shim error on CentOS 7

**URL:** <https://meta.discourse.org/t/docker-shim-error-on-centos-7/77686>\
**Category:** Support\
**Created:** [10 Enero, 2018 17:55 UTC](https://meta.discourse.org/t/docker-shim-error-on-centos-7/77686 "2018-01-10T17:55:19Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![dnsmichi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dnsmichi/32/379505_2.png) [@dnsmichi](https://meta.discourse.org/u/dnsmichi)\
**Post date:** [10 Enero, 2018 20:59 UTC](https://meta.discourse.org/t/docker-shim-error-on-centos-7/77686/10 "2018-01-10T20:59:51Z")

</div>

If systemd says “disabled”, you have multiple options

- `systemctl enable docker`
- SELinux is causing fun
- this is a meta unit which is disabled. The real service is named differently. You can see that for example with Elasticsearch, where the service unit files are named differently for each cluster instance.

Let’s do this in a CentOS Vagrant VM (actually, it is icinga-vagrant/icinga2x with a stopped httpd)

> **[Install Docker Engine on CentOS](https://docs.docker.com/engine/install/centos/)**
>
> Learn how to install Docker Engine on CentOS. These instructions cover the different installation methods, how to uninstall, and next steps.

```plaintext
yum install -y yum-utils \
  device-mapper-persistent-data \
  lvm2

yum-config-manager \
    --add-repo \
    https://download.docker.com/linux/centos/docker-ce.repo

yum -y install docker-ce

systemctl enable docker.service
systemctl start docker.service

git clone https://github.com/discourse/discourse_docker /var/discourse
cd /var/discourse

./discourse-setup
<enter all the time, let it fail at the end with the defaults, I have special requirements here>

```

Bootstrap afterwards works then.

```plaintext
[root@icinga2 discourse]# ./launcher bootstrap app
which: no docker.io in (/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin:/root/bin)

WARNING: We are about to start downloading the Discourse base image
This process may take anywhere between a few minutes to an hour, depending on your network speed

Please be patient

```

This also works for me with `setenforce 1` as the Docker package installs an SELinux policy.

So this somehow seems to be related to the missing enable/start step on CentOS. No need for a migration run to Ubuntu imho.

---

_[View the full topic](https://meta.discourse.org/t/docker-shim-error-on-centos-7/77686)._
