psi-4ward / docker-powerdns

PowerDNS Docker Image based on Alpine
107 stars 110 forks source link

Error mounting /etc/pdns/pdns.conf #19

Open stephaneerard opened 5 years ago

stephaneerard commented 5 years ago
cat run.sh
#!/usr/bin/env bash

docker run --name pdns \
  --link pdns-mysql:mysql \
  -p 53:53 \
  -p 53:53/udp \
  -e MYSQL_USER=root \
  -e MYSQL_PASS=supersecret \
  -v /home/vagrant/pdns.conf:/etc/pdns/pdns.conf \
  psitrax/powerdns \
    --cache-ttl=120 \
    --allow-axfr-ips=127.0.0.1,123.1.2.3

vagrant@powerdns:~$ sudo /vagrant/provisioning/powerdns/run.sh
Unable to find image 'psitrax/powerdns:latest' locally
latest: Pulling from psitrax/powerdns
c67f3896b22c: Already exists
f69a06678376: Pull complete
a2e0e5d77486: Pull complete
b2afe8f546bf: Pull complete
Digest: sha256:a758775b260d31673f76c2a7747a12f15564afafa74e10d9ae023ac4eb3ad49c
Status: Downloaded newer image for psitrax/powerdns:latest
docker: Error response from daemon: OCI runtime create failed: container_linux.go:348: starting container process caused "process_linux.go:402: container init caused \"rootfs_linux.go:58: mounting \\\"/home/vagrant/pdns.conf\\\" to rootfs \\\"/var/lib/docker/overlay2/8571904bcf0ddcc9cdac0cd5966ef8ada813f9d7f94446f3a897f847e400053b/merged\\\" at \\\"/var/lib/docker/overlay2/8571904bcf0ddcc9cdac0cd5966ef8ada813f9d7f94446f3a897f847e400053b/merged/etc/pdns/pdns.conf\\\" caused \\\"not a directory\\\"\"": unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type.
psi-4ward commented 5 years ago

looks like /home/vagrant/pdns.conf is a directory

stephaneerard commented 5 years ago

vagrant@powerdns:~$ ls -la /home/vagrant/pdns.conf -rw-r--r-- 1 root root 5007 Nov 26 18:49 /home/vagrant/pdns.conf

psi-4ward commented 5 years ago

wired, can anyone else reproduce this?

psi-4ward commented 5 years ago

I can not reproduce this issue.

Can you try adding --env MYSQL_AUTOCONF=false