Today I learned that swarn node does not support specifying the pid namespace unlike docker-compose. Docker does not support a lot of other option in swarm mode.

The whole list here