Eu tenho um contêiner de trabalho com link
-
docker build --rm --no-cache -t c7-systemd-off c7-systemd-off
Dockerfile:
FROM centos/systemd
RUN echo "myproxy" >> /etc/yum.conf
RUN yum -y install httpd; yum clean all; systemctl enable httpd.service
EXPOSE 80
CMD ["/usr/sbin/init"]
-
docker run --privileged --name c7 -v /sys/fs/cgroup:/sys/fs/cgroup:ro -p 80:80 -d c7-systemd-off
-
docker exec -it c7 /bin/bash