1
0
mirror of https://github.com/tiyn/wiki.git synced 2025-10-10 09:51:22 +02:00

restructuring to wiki-repo

This commit is contained in:
TiynGER
2020-04-10 18:51:58 +02:00
parent 7964ab15b4
commit f189138649
70 changed files with 1190 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
# Portainer-agent
This is a dockerized portainer-agent.
The official container and documentation was made by [portainer](https://hub.docker.com/r/portainer/agent).
## Volumes
Set the following volumes with the -v tag.
| Volume-Name | Container mount | Description |
| ----------------------- | ----------------------- | -------------------------------------- |
| /var/run/docker.sock | /var/run/docker.sock | connect your running docker containers |
| /var/lib/docker/volumes | /var/lib/docker/volumes | connect running docker volumes |
## Ports
Set the following ports with the -p tag.
| Container Port | Recommended outside port | Protocol | Description |
| -------------- | ------------------------ | -------- | -------------------- |
| 9001 | 9001 | TCP | Portainer agent port |

View File

@@ -0,0 +1,10 @@
#!/bin/sh
docker stop portainer_agent
docker rm portainer_agent
docker pull portainer/agent:latest
docker run --name portainer_agent \
-p 9001:9001 \
--restart unless-stopped \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /var/lib/docker/volumes:/var/lib/docker/volumes \
-d portainer/agent:latest