terrarium not working on x86_64
joelsprunger opened this issue · 11 comments
What is the issue?
I'm running Ubuntu 22 on an x86 machine and getting this message when I deploy locally.
! terrarium The requested image's platform (linux/arm64/v8) does not match the detected host platform (linux/amd64/v3) and no specific platform was requested 0.0s
Watch enabled
I tried specifying the platform in the docker-compose.yml and got this error instead.
[+] Running 0/1
⠇ terrarium Pulling 0.9s
image with reference ghcr.io/cohere-ai/terrarium:latest was found but does not match the specified platform: wanted linux/amd64/v3, actual: linux/arm64/v8
Is this terrarium image only for amd64?
Additional information
No response
@joelsprunger Not sure this will work, but can you try specifying arm64v8
in the docker compose?
When I do that I get the following message
docker compose up terrarium
WARN[0000] /home/joel/src/cohere-toolkit/docker-compose.yml: `version` is obsolete
[+] Running 0/1
⠧ terrarium Pulling 0.7s
image with reference ghcr.io/cohere-ai/terrarium:latest was found but does not match the specified platform: wanted linux/amd64/v8, actual: linux/arm64/v8
Ah excuse me, try amd64v8
I'm sorry - that's what I used.
terrarium:
image: ghcr.io/cohere-ai/terrarium:latest
platform: linux/amd64/v8
ports:
- '8080:8080'
expose:
- '8080'
To summarize
Specify AMD
terrarium:
image: ghcr.io/cohere-ai/terrarium:latest
platform: linux/amd64/v8
ports:
- '8080:8080'
expose:
- '8080'
Output:
docker compose up terrarium
WARN[0000] /home/joel/src/cohere-toolkit/docker-compose.yml: `version` is obsolete
[+] Running 0/1
⠧ terrarium Pulling 0.7s
image with reference ghcr.io/cohere-ai/terrarium:latest was found but does not match the specified platform: wanted linux/amd64/v8, actual: linux/arm64/v8
Specify ARM
terrarium:
image: ghcr.io/cohere-ai/terrarium:latest
platform: linux/arm64/v8
ports:
- '8080:8080'
expose:
- '8080'
Output:
docker compose up terrarium
WARN[0000] /home/joel/src/cohere-toolkit/docker-compose.yml: `version` is obsolete
[+] Running 1/0
✔ Container cohere-toolkit-terrarium-1 Recreated 0.0s
Attaching to terrarium-1
terrarium-1 | exec /usr/local/bin/ts-node: exec format error
and
Specify Nothing
terrarium:
image: ghcr.io/cohere-ai/terrarium:latest
ports:
- '8080:8080'
expose:
- '8080'
Output:
docker compose up terrarium
WARN[0000] /home/joel/src/cohere-toolkit/docker-compose.yml: `version` is obsolete
[+] Running 2/0
✔ Container cohere-toolkit-terrarium-1 Recreated 0.0s
! terrarium The requested image's platform (linux/arm64/v8) does not match the detected host platform (linux/amd64/v3) and no specific platform was requested 0.0s
Attaching to terrarium-1
terrarium-1 | exec /usr/local/bin/ts-node: exec format error
terrarium-1 exited with code 1
@joelsprunger Thanks for all the details, we're aware of the issues with some operating systems and will look into it
Hey @joelsprunger it's been a while but we should have a fix for this soon
@joelsprunger We've recently pushed a new version of the terrarium image that resolves this issue, you should be able to try again
@tianjing-li I had the same issue before on my Linux machine and can now confirm it works now. Thanks!
Thank you @a-romero
This works for me now. Thanks!