Skip to content

Upgrade to docker compose file version 3.5 #655

Description

@pablomendezroyo

Upgrade docker compose file version supported in DAppNode from 3.4 to 3.5.

Why?

Concerns

Update

Disconnect and connect containers works fine except for the following specific cases:

  • VPN package
  • Wifi package (only if wlan interface is present)

To reproduce the error:
docker network disconnect dncore_network DAppNodeCore-vpn.dnp.dappnode.eth
docker network connect dncore_network DAppNodeCore-vpn.dnp.dappnode.eth

The error:
Error response from daemon: failed to add interface vethe1f6a7e to sandbox: error setting interface "vethe1f6a7e" IP to 172.33.0.2/16: cannot program address 172.33.0.2/16 in sandbox interface because it conflicts with existing route {Ifindex: 3 Dst: 172.33.12.0/24 Src: 172.33.12.254 Gw: <nil> Flags: [] Table: 254}

To fix the error:
docker-compose -f /usr/src/dappnode/DNCORE/docker-compose-vpn.yml down
docker-compose -f /usr/src/dappnode/DNCORE/docker-compose-vpn.yml up -d

Due to the naturality of those packages, the issue might be the network configuration (ip routes table) that both packages have created and configured before disconnect to the dncore_network. Then when trying to connect them again to the network docker might attempt to create the same configuration and that is not allowed.

What solves the problem is to do docker-compose down and docker-compose up. This allows packages to connect back again to the dncore_network

Possible new roadmaps to solve this issue:

  • Do a core update and update core docker compose files manually. Still do migration for non core packages
  • Do compose down and compose up for VPN and wifi and normal migration for other packages

Metadata

Metadata

Labels

P0Address issue nowenhancementNew feature or requesthelp wantedExtra attention is needed

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions