You’re using an extremely old version of Caddy. Please upgrade to Caddy v2.
You can find the Docker image for Caddy v2 here: Docker
Our upgrade guide is here:
Also note the steps to build Caddy with plugins on the Docker Hub readme. Read this below article to learn how to use DNS plugins in Caddy v2: