Skip to content
Snippets Groups Projects
Verified Commit fe9695e9 authored by Tomas Krizek's avatar Tomas Krizek
Browse files

docker: use sensible defaults

Use default configuration file with example zone file and drop the
user to interactive knotc cli when launched.

Fixes #583
parent 5a07f4e3
No related branches found
No related tags found
1 merge request!903docker: use sensible defaults
Pipeline #
......@@ -3,7 +3,7 @@ MAINTAINER Knot DNS <knot-dns@labs.nic.cz>
# Select entrypoint
WORKDIR /root
CMD ["/usr/local/sbin/knotd"]
CMD /sbin/knotd & /sbin/knotc
# Expose port
EXPOSE 53/UDP 53/TCP
......@@ -32,3 +32,7 @@ apt-get purge -q -y ${BUILD_PKGS} && \
apt-get autoremove -q -y && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Use example configuration and zone
RUN mv /etc/knot/knot.sample.conf /etc/knot/knot.conf && \
echo ' - domain: example.com\n file: "/etc/knot/example.com.zone"' >> /etc/knot/knot.conf
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment