Thanks for your reply Douglas.
Turns out I forgot to create the folder during image build time and therefore docker engine created it as root inside the container. Thanks to your “not too stupid a response” I was able to backtrack and realize my mistake.
Thanks again.
Kind regards.