Skip to content

Commit

Permalink
Remove systemd managed dnsmasq in dockerfile
Browse files Browse the repository at this point in the history
Since we are running dnsmasq container in privileged mode, running
dnsmasq as systemd service in the container causing some issue like
when VM comes up, it shows centos in boot/login screen.
 - #695 (comment)
  • Loading branch information
praveenkumar committed Jan 23, 2020
1 parent 2bd8fac commit d094b99
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions images/dnsmasq/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@ FROM centos:8
MAINTAINER CodeReady Container <devtools-cdk@redhat.com>

RUN yum -y install dnsmasq && \
yum clean all && \
systemctl enable dnsmasq
yum clean all

COPY dnsmasq.conf /etc/
COPY resolv.dnsmasq.conf /etc/

EXPOSE 53/udp

CMD [ "/sbin/init" ]
ENTRYPOINT ["/usr/sbin/dnsmasq", "--keep-in-foreground"]

0 comments on commit d094b99

Please sign in to comment.