stacks/homelab/coredns/run

13 lines
261 B
Bash
Executable File

#! /bin/sh
image=coredns/coredns
[ -f upgrade ] && podman pull $image && rm upgrade
me=$(basename $(pwd))
podman rm $me
podman run \
--name $me \
--network host \
--mount type=bind,src=$(pwd)/Corefile,dst=/home/nonroot/Corefile,readonly=true \
$image