Hi guys, I’m trying to run Airbyte in my Apple M2 ...
# replication-ask-ai
m
Hi guys, I’m trying to run Airbyte in my Apple M2 Macbook with Docker and my server keeps restarting, my docker is also giving me an AMD64 Error. How can I fix that?
k
A message from kapa.ai
Based on the information from the extracts, it seems like you're encountering an issue related to the architecture of your M1/M2 Mac. Docker on M1/M2 Macs defaults to building for the ARM processor, which can cause issues with certain applications, including Airbyte. Here's how you can resolve this: 1. Go to Docker Desktop settings and find "Experimental features". Enable it. 2. Run
docker buildx create --use
in your terminal. 3. Build and push your image using the following command, replacing
repo/image-name:tag
with your specific details:
Copy code
bash docker buildx build --platform linux/amd64 --push -t repo/image-name:tag .
Please note that in some cases, tag overwriting might not work, so you might need to use a distinct tag. This information was derived from a [forum discussion](https://discuss.airbyte.io/t/4652) where a user faced a similar issue. If you're still facing issues, please provide more details about the error messages you're seeing, and the steps you've taken so far.
m
When the server gets to run okay my proxy does not and I get the error log:
2023/07/04 22:18:20 [emerg] 23#23: host not found in upstream "airbyte-webapp" in /etc/nginx/nginx.conf:17
a
@Matheus Barbosa did you manage to solve this? I am getting this error on both Ubuntu and Mac OS. Only solution I found is to remove user and password auth, run the docker and then add it later it you want to.
I solved it by changing these in .env:
Copy code
DATABASE_HOST from "db" to "airbyte-db"
DATABASE_URL from "jdbc:<postgresql://db:5432/airbyte>" to "jdbc:<postgresql://airbyte-db:5432/airbyte>
m
I also fixed by doing the exact same thing @Andrei-Mircea Baltatu! Thank you for reaching me!