#! /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