From 72832d0c1cc0b8e7ec8f3d51ea85406592a78e0c Mon Sep 17 00:00:00 2001 From: Florian Schwab Date: Fri, 28 Sep 2018 01:14:07 +0200 Subject: [PATCH] initial commit --- Dockerfile | 11 +++++++++++ README.md | 19 +++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 Dockerfile create mode 100644 README.md diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..7521658 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +FROM alpine:3.8 +MAINTAINER Florian Schwab + +# install avahi +RUN apk add --no-cache avahi avahi-tools + +# disable d-bus +RUN sed -i 's/.*enable-dbus.*/enable-dbus=no/' /etc/avahi/avahi-daemon.conf + +# set entrypoint +ENTRYPOINT ["avahi-daemon"] diff --git a/README.md b/README.md new file mode 100644 index 0000000..1b5a68b --- /dev/null +++ b/README.md @@ -0,0 +1,19 @@ +# Docker image for Avahi + +## Get configuration from image + +```bash +docker create ydkn/avahi:latest +docker cp $(docker ps -ql):/etc/avahi . +docker rm $(docker ps -ql) +``` + +## Modify configuration +Edit `avahi-daemon.conf` to you needs. +Edit the services in the `services` directory to you needs. + +# Start the container + +```bash +docker run -d --restart always --net=host -v $(pwd)/avahi:/etc/avahi ydkn/avahi:latest +```