How to run jupyterhub with docker swarm?

Have you seen the DockerSpawner documentation? DockerSpawner

If you need more help please have a look at Getting good answers to your questions first. Thanks!