Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| docker_notes:docker [2025-03-02 Sun wk09 11:21] – [References] baumkp | docker_notes:docker [2025-11-27 Thu wk48 17:12] (current) – [Portainer agent] baumkp | ||
|---|---|---|---|
| Line 21: | Line 21: | ||
| Install Docker Engine : [Docker Engine](https:// | Install Docker Engine : [Docker Engine](https:// | ||
| + | ====downgrade docker==== | ||
| + | The upgrade of docker-ce from version 28.5.2 to 29.0.0 seems to have broken something and the environment stopped function correctly, seems to be docker-ce and traefik related, both packages seem to have been fixed about 3 days later. | ||
| + | For debian based systems: | ||
| + | *'' | ||
| + | *< | ||
| + | Installed: 5: | ||
| + | Candidate: 5: | ||
| + | Version table: | ||
| + | *** 5: | ||
| + | 500 https:// | ||
| + | 100 / | ||
| + | | ||
| + | 500 https:// | ||
| + | | ||
| + | 500 https:// | ||
| + | | ||
| + | *'' | ||
| + | |||
| + | 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: | ||
| + | *[[https:// | ||
| + | *'' | ||
| + | *'' | ||
| + | *[[https:// | ||
| + | *'' | ||
| + | *'' | ||
| + | *'' | ||
| + | *[[https:// | ||
| + | *'' | ||
| + | *'' | ||
| ====Docker Desktop for Linux==== | ====Docker Desktop for Linux==== | ||
| I have preferred to run Docker command as a native Linux applications. | I have preferred to run Docker command as a native Linux applications. | ||
| Line 76: | Line 113: | ||
| ++++ | ++++ | ||
| ++++nft list table ip nat| | ++++nft list table ip nat| | ||
| - | < | + | < |
| table ip nat { | table ip nat { | ||
| chain DOCKER_OUTPUT { | chain DOCKER_OUTPUT { | ||
| Line 121: | 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 126: | 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 '' | ||
| Line 260: | Line 326: | ||
| ===reference=== | ===reference=== | ||
| *[[https:// | *[[https:// | ||
| + | *[[https:// | ||
| *Docker Docs | *Docker Docs | ||
| *[[https:// | *[[https:// | ||
| Line 286: | Line 353: | ||
| * '' | * '' | ||
| - Host (Appears on the host machine as if installed there, no separate network.) | - Host (Appears on the host machine as if installed there, no separate network.) | ||
| - | | + | -If you use the host network mode for a container, that container' |
| + | | ||
| + | -The macvlan network assigns a unique MAC address to each container, making it appear to be a physical device on your network, just like a traditional virtual machine. The Docker daemon then routes the traffic to containers on the basis of their MAC address. It also allows you to assign an IP address from the same subnet in which the Docker host resides. This avoids the use of the host network, there is no NAT overhead, and you won't run into network performance issues. | ||
| - MACVLAN (without subVLAN) this create a new ip address on the host machine | - MACVLAN (without subVLAN) this create a new ip address on the host machine | ||
| * <code bash> | * <code bash> | ||