Dockerfile: facilitate the use of unprivileged container
Hi knot team,
I was migrating my setup from bare knot-dns to container, and it fails due to the lack of an existing knot user inside the container. This user is created when we install the package (deb, rpm, ...) and for those who migrate their config and/or want to execute unprivileged containers, a default user should also be created in the image.
The proposed patch adds the user and apply correct rights on /rundir
, for the purpose of unprivileged container.
If server.user
is not present in the config, it still works, as root also has rights to create files, thanks to its superuser capabilities.
0001-Dockerfile-facilitate-the-use-of-unprivileged-contai.patch