docker pull jbanetwork/tinydns
假设在/etc/tinydnsdocker/目录下存在data文件是解析文件
docker run -it –rm -v /etc/tinydnsdocker:/opt/tinydns jbanetwork/tinydns:latest tinydns-data
docker stop tinydns
docker rm tinydns
docker run -d –read-only -p 53:53/udp –name tinydns –restart=always -v /etc/tinydnsdocker:/opt/tinydns jbanetwork/tinydns:latest