Portainer is an Open-Source lightweight Management UI which allows you to easily manage your Docker Hosts or Swarm Clusters
- Port 9000 of the container is published to the host
- A 16 megabyte limit is set on the container, in this instance.
- Data is persisted in a named volume called ‘portainer_data’
docker run -d \ --name portainer \ --restart=unless-stopped \ --memory=16m \ -p 9000:9000 \ -v /var/run/docker.sock:/var/run/docker.sock \ -v portainer_data:/data \ portainer/portainer
The container can also be deployed using the more explicit –mount flag which became available for standalone containers in Docker 17.06.
docker run -d \ --name portainer \ --restart=always \ --memory=16m \ -p 9000:9000 \ -v /var/run/docker.sock:/var/run/docker.sock \ --mount source=portainer_data,destination=/data \ portainer/portainer