mirror of
https://github.com/tiyn/wiki.git
synced 2025-10-27 00:31:16 +01:00
docker-images/docker: restructuring
This commit is contained in:
43
wiki/docker/portainer_-_portainer.md
Normal file
43
wiki/docker/portainer_-_portainer.md
Normal file
@@ -0,0 +1,43 @@
|
||||
# portainer - portainer
|
||||
|
||||
This is a [Docker](/wiki/docker.md) container for a [portainer](../portainer.md)
|
||||
server.
|
||||
The official container and documentation was made by
|
||||
[portainer](https://hub.docker.com/r/portainer/portainer).
|
||||
|
||||
## Set-up
|
||||
|
||||
Create the file `rebuild.sh`.
|
||||
Change the settings according to your needs and run `./rebuild.sh` afterwards.
|
||||
|
||||
## 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
|
||||
|
||||
```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
|
||||
```
|
||||
Reference in New Issue
Block a user