Tecnativa / docker-whitelist

A socat service to whitelist network connections
Apache License 2.0
8 stars 8 forks source link

Cannot start on a mac M1 #7

Closed piqoni closed 10 months ago

piqoni commented 3 years ago

Odoo image was built successfully but at the last step of the doodba set-up, when I perform a 'docker-compose up -d' I get the following error. Does anyone have found a workaround?

Digest: sha256:e6e1d1d41fb7087250176b38c73666c1205816e8b8d2d8f8f4a69ce23f7635b3
Status: Downloaded newer image for kozea/wdb:latest
Pulling cdnjs_cloudflare_proxy (tecnativa/whitelist:)...
latest: Pulling from tecnativa/whitelist
ERROR: no matching manifest for linux/arm64/v8 in the manifest list entries
joao-p-marques commented 3 years ago

The tecnativa/whitelist image is not currently available for the linux/arm64/v8 platform and that is what is causing the issue. Maybe this issue should be moved there.

joao-p-marques commented 3 years ago

This would be a good improvement, as that is quite a common architecture (also used on Raspberry Pi 4, for example). However, the build currently fails if we try this, so we ended up removing for now...

piqoni commented 3 years ago

Thanks @joao-p-marques. Looking forward for a fix. 🙌 Meanwhile, does anyone have any suggestion for a workaround, perhaps disabling the whitelist from docker-compose? In my scenario, I simply want to make the image work locally. 🤞

joao-p-marques commented 3 years ago

@piqoni you could just disable every service that uses that image, and remove the dependency from the odoo container to those services. The problem is that we run odoo in a docker internal network, so you'd either have it not contacting those services that we are whitelisting, or open it to a normal docker network and potentially face some mail sending issues.

dnplkndll commented 1 year ago

Odoo image was built successfully but at the last step of the doodba set-up, when I perform a 'docker-compose up -d' I get the following error. Does anyone have found a workaround?

Digest: sha256:e6e1d1d41fb7087250176b38c73666c1205816e8b8d2d8f8f4a69ce23f7635b3
Status: Downloaded newer image for kozea/wdb:latest
Pulling cdnjs_cloudflare_proxy (tecnativa/whitelist:)...
latest: Pulling from tecnativa/whitelist
ERROR: no matching manifest for linux/arm64/v8 in the manifest list entries

this may be intentional? https://github.com/Tecnativa/docker-whitelist/commit/7dc54f5e37183f8c8cf1173a3daf8a2e084aa649

just add

    platform: "linux/amd64"

like:

  # Whitelist outgoing traffic for tests, reports, etc.
  proxy_cdnjs_cloudflare_com:
    image: ghcr.io/tecnativa/docker-whitelist:latest
    platform: "linux/amd64"
    networks:
      default:
        aliases:
          - cdnjs.cloudflare.com
      public:
    environment:
      TARGET: cdnjs.cloudflare.com
      PRE_RESOLVE: 1
xavivars commented 1 year ago

Another easy workaround: build the image locally.

git clone this repo, and do docker build -t ghcr.io/tecnativa/docker-whitelist:latest .

PCatinean commented 10 months ago

Support for arm64 now added https://github.com/Tecnativa/docker-whitelist/pull/17