Ignoring SYSTEMD_INSTANCE environment variable
I am using kres inside docker container in which it is installed according to official instructions. In order to avoid issue of stale sockets I decided to force the id with SYSTEMD_INSTANCE environment variable as such in my entrypoint:
SYSTEMD_INSTANCE=1 kresd -n -c /etc/knot-resolver/kresd.conf /run/knot-resolver
Without any success:
$ docker exec -it kres-test ls /run/knot-resolver/control
10
Image is based on ubuntu:20.04 if it does matter somehow.