Run Docker container with custom Seccomp profile

You can create your own custom Seccomp profile and make changes to it as per your requirement like disabling mkdir, chown, chmod related syscalls etc.

Docker can associate this custom Seccomp profile with the container using the --security-opt parameter:

docker run --security-opt seccomp=/path/to/file/your-custom-profile.json --name nginx-custom-seccomp nginx