1
0
mirror of https://github.com/tiyn/wiki.git synced 2026-07-02 18:11:35 +02:00
Files
wiki/wiki/docker/portainer_-_portainer.md
tiyn c03daea525 Corrected various typographic errors
- substituted en-dash for hyphen where needed
- renamed files to avoid confusion due to identical name
- added links
- fixed capitalization
- fixed line breaks
2026-07-02 09:12:29 +02:00

1.4 KiB
Raw Blame History

portainer portainer

This is a Docker container for a portainer server. The official container and documentation was made by portainer.

Set-up

Create the file rebuild.sh. Change the settings according to your needs and run ./rebuild.sh afterward.

Volumes

Set the following volumes with the -v tag.

Outside mount/volume name Container mount Description
portainer /data configuration directory
/var/run/docker.sock /var/run/docker.sock connection to local docker containers and volumes

Ports

Set the following ports with the -p tag.

Container Port Recommended outside port Protocol Description
9000 9000 TCP WebUI

rebuild.sh

#!/bin/sh
docker stop portainer
docker rm portainer
docker pull portainer/portainer:latest
docker run --name portainer \
    --restart unless-stopped \
    -p 9000:9000 \
    -v /var/run/docker.sock:/var/run/docker.sock \
    -v portainer:/data \
    -d portainer/portainer