Replies: 14 comments
-
@tedivm Try with below change in docker-compose.yml for mac
instead of "containerd" |
Beta Was this translation helpful? Give feedback.
-
That does get me a bit further but still results in an error when attempting to run the tutorial job. Service Logs:
Fly CLI Output:
|
Beta Was this translation helpful? Give feedback.
-
I've tried with the "alpine" and "python" containers as well, just in case, but end up with the same error-
|
Beta Was this translation helpful? Give feedback.
-
Here's a working docker-compose.yml file I got working on my Mac M1. The key is to use the CONCOURSE_WORKER_BAGGAGECLAIM_DRIVER: naive
CONCOURSE_WORKER_BAGGAGECLAIM_DISABLE_USER_NAMESPACES: true
CONCOURSE_WORKER_RUNTIME: "houdini" Alpine based images usually just makes things worse and all to save a few MBs. At least, from my experience, it is not worth the trouble they bring. Anyways, here is the full compose file. Hope it helps! Full docker-compose.yml file
|
Beta Was this translation helpful? Give feedback.
-
That worked! Thank you! |
Beta Was this translation helpful? Give feedback.
-
Hi @danlsgiga , selected worker: a1acdec9f9e6 selected worker: a1acdec9f9e6 find or create container on worker a1acdec9f9e6: stream image metadata file: failed to stream out from volume docker-compose.yml services: concourse: |
Beta Was this translation helpful? Give feedback.
-
I am also struggling getting concourse to run jobs on an With the options: CONCOURSE_WORKER_RUNTIME: "houdini"
CONCOURSE_WORKER_BAGGAGECLAIM_DRIVER: naive
CONCOURSE_WORKER_BAGGAGECLAIM_DISABLE_USER_NAMESPACES: true and image: image: concourse/concourse:7.9.1-ubuntu
platform: linux/amd64 I am getting:
(I am on a |
Beta Was this translation helpful? Give feedback.
-
For additional context: CONCOURSE_WORKER_BAGGAGECLAIM_DRIVER: overlay
CONCOURSE_WORKER_RUNTIME: "containerd" and: platform: linux/amd64
image: concourse/concourse:7.9-ubuntu failed with: concourse-concourse-1 | containerd-garden-backend exited with error: setup host network failed: create chain or flush if exists failed: running [/usr/sbin/iptables -t filter -N CONCOURSE-OPERATOR --wait]: exit status 3: iptables v1.8.7 (legacy): can't initialize iptables table `filter': iptables who? (do you need to insmod?)
concourse-concourse-1 | Perhaps iptables or your kernel needs to be upgraded. i.e. concourse itself couldn't start. |
Beta Was this translation helpful? Give feedback.
-
On the other hand, I was able to get this going with: CONCOURSE_WORKER_RUNTIME: "containerd"
CONCOURSE_WORKER_BAGGAGECLAIM_DRIVER: overlay and the image: rdclda/concourse:7.9.1
platform: linux/arm64 where no errors were reported during startup of concourse, and the above EDIT:
|
Beta Was this translation helpful? Give feedback.
-
thank it worked for me on Mac M1 without using |
Beta Was this translation helpful? Give feedback.
-
I got similar error on RHEL 8.9 when follow the quick start https://concourse-ci.org/quick-start.html.
here is my compose file version: '3'
services:
concourse-db:
image: postgres
environment:
POSTGRES_DB: concourse
POSTGRES_PASSWORD: concourse_pass
POSTGRES_USER: concourse_user
PGDATA: /database
concourse:
image: concourse/concourse
command: quickstart
privileged: true
depends_on: [concourse-db]
ports: ["8080:8080"]
environment:
CONCOURSE_POSTGRES_HOST: concourse-db
CONCOURSE_POSTGRES_USER: concourse_user
CONCOURSE_POSTGRES_PASSWORD: concourse_pass
CONCOURSE_POSTGRES_DATABASE: concourse
CONCOURSE_EXTERNAL_URL: http://localhost:8080
CONCOURSE_ADD_LOCAL_USER: test:test
CONCOURSE_MAIN_TEAM_LOCAL_USER: test
# instead of relying on the default "detect"
CONCOURSE_WORKER_BAGGAGECLAIM_DRIVER: overlay
CONCOURSE_CLIENT_SECRET: Y29uY291cnNlLXdlYgo=
CONCOURSE_TSA_CLIENT_SECRET: Y29uY291cnNlLXdvcmtlcgo=
CONCOURSE_X_FRAME_OPTIONS: allow
CONCOURSE_CONTENT_SECURITY_POLICY: "*"
CONCOURSE_CLUSTER_NAME: tutorial
CONCOURSE_WORKER_CONTAINERD_DNS_SERVER: "8.8.8.8"
# For ARM-based machine, change the Concourse runtime to "houdini"
CONCOURSE_WORKER_RUNTIME: "containerd" |
Beta Was this translation helpful? Give feedback.
-
And I can run the command
|
Beta Was this translation helpful? Give feedback.
-
Cool. I can workaround it by running this command before |
Beta Was this translation helpful? Give feedback.
-
The troubleshooting in here has been great. In general though you are trying to run an amd64 image on an arm machine, so it's not surprising that things aren't working. I don't think Rosetta (translation layer by Apple) was designed for this use-case. The real solution here is for Concourse to release an Until that happens these are all workarounds which basically remove all the "container stuff" when running off an M1 Mac. |
Beta Was this translation helpful? Give feedback.
-
Summary
The quickstart page recommends using a supplied docker compose file to start.
Running this docker compose file on an M1 fails.
Steps to reproduce
Expected results
Concourse launches.
Actual results
Note that this does resolve the "wrong architecture" problem but otherwise seems like a broken image.
Additional context
This is with a fresh docker desktop install.
Triaging info
Beta Was this translation helpful? Give feedback.
All reactions