docs(deployment): add deploy as a service in swarm

pull/7/head
Basilio Vera 2016-11-22 17:05:34 +01:00
parent 6755baaa90
commit 8314330822
1 changed files with 11 additions and 0 deletions

View File

@ -74,6 +74,17 @@ For example, when connecting to a remote Swarm node:
$ docker run -d -p 9000:9000 portainer/portainer -H tcp://<REMOTE_HOST>:<REMOTE_PORT> --swarm
If you're using swarm mode, you can also deploy it as a service in your cluster:
.. code-block:: bash
$ docker service create \
--name portainer \
--publish 9000:9000 \
--constraint 'node.role == manager' \
--mount type=bind,src=/var/run/docker.sock,dst=/var/run/docker.sock \
portainer/portainer \
--swarm
Connect to a Docker engine with TLS enabled
===========================================