Fix bug in the creation of the logs dir.
Use the root user from the container to create the dir and then change the group and owner so www-data can write.
Use the root user from the container to create the dir and then change the group and owner so www-data can write.