How to run Pagerank by docker swarm?

How to run Pagerank by docker swarm ?

Because run the https://github.com/usi-systems/giraph-pagerank

must go to -bash

but docker swarm service seem could not go to -bash

or other method run the pagerank by docker swarm?