Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| docker_notes:docker [2025-11-16 Sun wk46 19:39] – [downgrade docker] baumkp | docker_notes:docker [2025-11-27 Thu wk48 17:12] (current) – [Portainer agent] baumkp | ||
|---|---|---|---|
| Line 158: | Line 158: | ||
| =====Portainer agent===== | =====Portainer agent===== | ||
| + | Running Portainer agent from docker is a tedious. | ||
| + | ++++docker agent docker compose, | ||
| + | <code yaml> | ||
| + | services: | ||
| + | |||
| + | portainer-agent: | ||
| + | container_name: | ||
| + | image: portainer/ | ||
| + | ports: | ||
| + | - " | ||
| + | volumes: | ||
| + | # Mount the host's Docker socket into the container | ||
| + | - / | ||
| + | # Mount the host's Docker volumes into the container | ||
| + | - / | ||
| + | deploy: | ||
| + | resources: | ||
| + | limits: | ||
| + | cpus: ' | ||
| + | memory: 1024M | ||
| + | restart_policy: | ||
| + | condition: unless-stopped | ||
| + | delay: 5s | ||
| + | window: 120s</ | ||
| + | ++++ | ||
| + | |||
| + | ++++run docker agent from docker| | ||
| Portainer agent allows a remote docker machine to be seen else were via the network. | Portainer agent allows a remote docker machine to be seen else were via the network. | ||
| * First stop the agent container: '' | * First stop the agent container: '' | ||
| Line 163: | Line 190: | ||
| * Then pull the latest portainer/ | * Then pull the latest portainer/ | ||
| <code yaml> | <code yaml> | ||
| + | ++++ | ||
| It would seem remote agents by default do not show out of date images, can be toggled on/off under '' | It would seem remote agents by default do not show out of date images, can be toggled on/off under '' | ||