Fix permission denied error when trying to generate a config file with the docker image.