Operation not permitted systemctl with docker + systemctl
<p><strong>Dockerfile</strong></p>

<pre><code>FROM centos:7
ENV container docker
VOLUME ["/sys/fs/cgroup"]
RUN yum -y update
RUN yum install -y httpd
RUN systemctl start httpd.service
ADD . /code
WORKDIR /code
</code></pre>

<p><strong>docker-compose.yml</strong></p>

<pre><code>version: '2'
services:
web:
   privileged: true
   build: .
   ports:
    - "80:80"
   volumes:
    - .:/code
</code></pre>

<p><strong>command</strong></p>

<pre><code>docker-compose build
</code></pre>

<p><strong>error</strong>:</p>

<p>Step 6 : RUN systemctl start httpd.service
 ---> Running in 5989c6576ac9
?[91mFailed to get D-Bus connection: Operation not permitted
?[0m?[31mERROR?[0m: Service 'web' failed to build: The command '/bin/sh -c syste
mctl start httpd.service' returned a non-zero code: 1</p>

<p><strong>Obs</strong>: running on a windows 7 :(</p>

<p>Any tip?</p>