Set the permissions for everything using the file path full access to the folder but jibri errors out with java.nio.file.AccessDeniedException

This is the first severe exception that is thrown right after I start the recording the jibri instance is called but refuses to create the recording.

FileUtilsKt.createIfDoesNotExist#28: Error creating directory
java.nio.file.AccessDeniedException: /run/s6/services/40-jibri/~
	at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:90)
	at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
	at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:116)
	at java.base/sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:389)
	at java.base/java.nio.file.Files.createDirectory(Files.java:690)
	at java.base/java.nio.file.Files.createAndCheckIsDirectory(Files.java:797)
	at java.base/java.nio.file.Files.createDirectories(Files.java:783)
	at org.jitsi.jibri.util.FileUtilsKt.createIfDoesNotExist(FileUtils.kt:26)
	at org.jitsi.jibri.service.impl.FileRecordingJibriService.start(FileRecordingJibriService.kt:153)
	at org.jitsi.jibri.JibriManager.startService$lambda-2(JibriManager.kt:239)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:829)

How do I give docker access to the folder to allow write access ??