Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| docker_notes:docker [2025-11-15 Sat wk46 06:59] – [downgrade docker] baumkp | docker_notes:docker [2026-01-17 Sat wk03 09:03] (current) – [Docker CLI] baumkp | ||
|---|---|---|---|
| Line 38: | Line 38: | ||
| | | ||
| *'' | *'' | ||
| + | |||
| + | This problem keeps on giving. | ||
| + | ++++sudo systemctl edit docker.service| | ||
| + | < | ||
| + | Environment=DOCKER_MIN_API_VERSION=1.24</ | ||
| + | And then '' | ||
| + | ++++ | ||
| + | Presumably this will eventually be resolved up stream and this fix can be removed. | ||
| Some references to assist with this: | Some references to assist with this: | ||
| Line 68: | Line 76: | ||
| ++++For some more details, tldr;|This may affect other services operating on the host machine. | ++++For some more details, tldr;|This may affect other services operating on the host machine. | ||
| - | Linux forwarding is required for Docker and can be checked with '' | + | Linux forwarding is required for Docker and can be checked with '' |
| It would also adversely affect my Linux router should I attempt to load docker on this machine. | It would also adversely affect my Linux router should I attempt to load docker on this machine. | ||
| Line 150: | 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 155: | 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 '' | ||
| Line 212: | Line 247: | ||
| |'' | |'' | ||
| |'' | |'' | ||
| - | |'' | + | |'' |
| - | |'' | + | |'' |
| **Inspect / Troubleshoot Containers: | **Inspect / Troubleshoot Containers: | ||
| - | |<38em>| | + | |<56em>| |
| ^COMMAND ^ DESCRIPTION^ | ^COMMAND ^ DESCRIPTION^ | ||
| |'' | |'' | ||
| Line 227: | Line 262: | ||
| |'' | |'' | ||
| |'' | |'' | ||
| + | |'' | ||
| + | |'' | ||
| **Run Commands:** | **Run Commands:** | ||
| Line 240: | Line 277: | ||
| **Images:** | **Images:** | ||
| - | |<35em>| | + | |<40em>| |
| ^COMMAND ^ DESCRIPTION^ | ^COMMAND ^ DESCRIPTION^ | ||
| |'' | |'' | ||
| Line 259: | Line 296: | ||
| **Volumes: | **Volumes: | ||
| - | |<50em>| | + | |<55em>| |
| ^COMMAND ^ DESCRIPTION^ | ^COMMAND ^ DESCRIPTION^ | ||
| |'' | |'' | ||
| Line 266: | Line 303: | ||
| |'' | |'' | ||
| |'' | |'' | ||
| - | |'' | + | |'' |
| **Network: | **Network: | ||
| - | |<50em>| | + | |<55em>| |
| ^COMMAND ^ DESCRIPTION^ | ^COMMAND ^ DESCRIPTION^ | ||
| |'' | |'' | ||
| Line 351: | Line 388: | ||
| ====References==== | ====References==== | ||
| + | *[[https:// | ||
| *[[https:// | *[[https:// | ||
| *[[https:// | *[[https:// | ||
| Line 358: | Line 396: | ||
| *[[https:// | *[[https:// | ||
| *[[https:// | *[[https:// | ||
| + | |||
| + | =====Docker IP6===== | ||
| + | |||
| + | ====References==== | ||
| + | *[[https:// | ||
| + | *[[https:// | ||
| =====network troubleshooting===== | =====network troubleshooting===== | ||
| A lot of containers are setup to be small and hence do not include many, if any of the tools required to diagnose problems. | A lot of containers are setup to be small and hence do not include many, if any of the tools required to diagnose problems. | ||
| Line 366: | Line 410: | ||
| *[[https:// | *[[https:// | ||
| *[[https:// | *[[https:// | ||
| + | |||
| + | =====Docker Container Repositories===== | ||
| + | |||
| + | ====References==== | ||
| + | *[[https:// | ||
| + | *[[https:// | ||
| + | |||
| =====Docker Cleanup===== | =====Docker Cleanup===== | ||