docker跑tinydns

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

发表评论

邮箱地址不会被公开。 必填项已用*标注