2016-09-04 02:50:37 +00:00
# Portainer
2013-06-09 00:12:14 +00:00
2016-09-24 10:31:37 +00:00
The easiest way to manage Docker.
2016-10-02 23:35:40 +00:00
[![Microbadger version ](https://images.microbadger.com/badges/version/portainer/portainer.svg )](https://microbadger.com/images/portainer/portainer "Latest version on Docker Hub")
2016-09-23 06:28:20 +00:00
[![Microbadger ](https://images.microbadger.com/badges/image/portainer/portainer.svg )](http://microbadger.com/images/portainer/portainer "Image size")
2016-09-30 05:47:36 +00:00
[![Documentation Status ](https://readthedocs.org/projects/portainer/badge/?version=stable )](http://portainer.readthedocs.io/en/stable/?badge=stable)
2016-09-04 03:33:59 +00:00
[![Gitter ](https://badges.gitter.im/portainer/Lobby.svg )](https://gitter.im/portainer/Lobby?utm_source=badge& utm_medium=badge& utm_campaign=pr-badge)
2016-09-24 10:31:37 +00:00
Portainer is a lightweight management UI which allows you to **easily** manage your Docker host or Swarm cluster.
2013-06-09 00:12:14 +00:00
2016-09-24 10:31:37 +00:00
# Usage
2013-12-30 18:40:08 +00:00
2016-09-24 10:31:37 +00:00
It's really simple to deploy it using Docker:
2014-12-30 19:42:54 +00:00
2016-09-24 10:31:37 +00:00
```shell
$ docker run -d -p 9000:9000 portainer/portainer -H tcp://< DOCKER_HOST > :< DOCKER_PORT >
2016-06-23 22:22:04 +00:00
```
2014-12-30 19:42:54 +00:00
2016-09-24 10:31:37 +00:00
Just point it at your targeted Docker host and then access Portainer by hitting [http://localhost:9000 ](http://localhost:9000 ) with a web browser.
2016-06-16 05:39:59 +00:00
2016-09-24 10:31:37 +00:00
If your target is a Docker Swarm cluster or a Docker cluster using *swarm mode* , just add the flag `--swarm` :
2016-06-23 22:11:25 +00:00
2016-09-24 10:31:37 +00:00
```shell
2016-09-23 06:28:20 +00:00
$ docker run -d -p 9000:9000 portainer/portainer -H tcp://< SWARM_HOST > :< SWARM_PORT > --swarm
2016-06-23 22:22:04 +00:00
```
2016-06-16 05:39:59 +00:00
2016-09-24 10:31:37 +00:00
If you don't specify any target, its default behaviour is to use a bind mount on the Docker socket so you can easily deploy it to manage your local Docker host:
2014-12-30 19:42:54 +00:00
2016-09-24 10:31:37 +00:00
```shell
$ docker run -d -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock portainer/portainer
2016-06-23 22:22:04 +00:00
```
2016-06-23 22:11:49 +00:00
2016-09-30 05:51:09 +00:00
Have a look at our [documentation ](http://portainer.readthedocs.io/en/stable/deployment.html ) for more deployment options.
2016-07-12 08:31:11 +00:00
2016-09-24 10:31:37 +00:00
# Configuration
2016-07-12 08:31:11 +00:00
2016-09-24 10:31:37 +00:00
Portainer is easy to tune using CLI flags.
2016-07-12 08:31:11 +00:00
2016-09-24 10:31:37 +00:00
## Hiding specific containers
2016-08-17 09:52:49 +00:00
2016-09-24 10:31:37 +00:00
Portainer allows you to hide container with a specific label by using the `-l` flag.
2016-06-23 22:11:49 +00:00
For example, take a container started with the label `owner=acme` :
2016-09-24 10:31:37 +00:00
```shell
2016-06-23 22:11:49 +00:00
$ docker run -d --label owner=acme nginx
```
2016-09-24 10:31:37 +00:00
Simply add the `-l owner=acme` option on the CLI when starting Portainer:
```shell
$ docker run -d -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock portainer/portainer -l owner=acme
2016-06-23 22:11:49 +00:00
```
2016-06-23 22:22:04 +00:00
2016-09-24 10:31:37 +00:00
## Use your own templates
2016-08-17 06:31:23 +00:00
2016-09-24 10:31:37 +00:00
Portainer allows you to rapidly deploy containers using `App Templates` .
2016-08-17 06:31:23 +00:00
2016-09-24 10:31:37 +00:00
By default [Portainer templates ](https://raw.githubusercontent.com/portainer/templates/master/templates.json ) will be used but you can also define your own templates.
2016-08-17 06:31:23 +00:00
2016-09-24 10:31:37 +00:00
Add the `--templates` flag and specify the external location of your templates when starting Portainer:
2016-08-17 06:31:23 +00:00
2016-09-24 10:31:37 +00:00
```shell
$ docker run -d -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock portainer/portainer --templates http://my-host.my-domain/templates.json
2016-08-17 06:31:23 +00:00
```
2016-09-30 05:51:55 +00:00
For more information about hosting your own template definitions and the format, see the [templates documentation ](http://portainer.readthedocs.io/en/stable/templates.html ).
2016-09-24 10:31:37 +00:00
2016-09-30 05:51:09 +00:00
Check our [documentation ](http://portainer.readthedocs.io/en/stable/configuration.html ) for more configuration options.
2016-08-17 06:31:23 +00:00
2016-09-24 10:31:37 +00:00
# FAQ
2016-08-23 06:09:14 +00:00
2016-09-30 05:51:09 +00:00
Be sure to check our [FAQ ](http://portainer.readthedocs.io/en/stable/faq.html ) if you are missing some information.
2016-08-23 06:09:14 +00:00
2016-09-24 10:31:37 +00:00
# Limitations
2016-08-23 06:09:14 +00:00
2016-09-24 10:31:37 +00:00
Portainer has full support for the following Docker versions:
2016-08-23 06:09:14 +00:00
2016-09-24 10:31:37 +00:00
* Docker 1.10 to Docker 1.12 (including `swarm-mode` )
* Docker Swarm >= 1.2.3
2016-06-23 22:22:04 +00:00
2016-09-24 10:31:37 +00:00
Partial support for the following Docker versions (some features may not be available):
2016-06-23 22:22:04 +00:00
2016-09-24 10:31:37 +00:00
* Docker 1.9