initial commit
This commit is contained in:
parent
ec93dac026
commit
72832d0c1c
2 changed files with 30 additions and 0 deletions
11
Dockerfile
Normal file
11
Dockerfile
Normal file
|
@ -0,0 +1,11 @@
|
|||
FROM alpine:3.8
|
||||
MAINTAINER Florian Schwab <me@ydkn.de>
|
||||
|
||||
# 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"]
|
19
README.md
Normal file
19
README.md
Normal file
|
@ -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
|
||||
```
|
Loading…
Reference in a new issue