I need to pass a custom seccomp profile file to a container running on a Docker swarm. It can be easily done and it works fine with a standalone container using --security-opt option. The problem arises when you try to pass it to a container that is running on a swarm. Docker compose file ver 3 documentation explicitly states that the --security-opt option is ignored for swarm deployments: https://docs.docker.com/compose/compose-file/#security_opt
How can I pass a custom seccomp profile to a container or a service when deployed on a swarm? Is there any other way of changing system restrictions on containers? cap_add and/or cap_drop are not an option. Any ideas? Thanks a million!