Error: Unable to run docker-compose on Apple M1 Silicon

Issue Summary

My laptop is a new Apple Silicon M1 so I installed the preview version of Docker for Apple Silicon. When I git clone the Redash repo and then try to set it up using Docker via docker-compose up -d it runs into this error:

E: Unable to locate package msodbcsql17
ERROR: Service ‘server’ failed to build : The command ‘/bin/sh -c apt-get update && apt-get install -y curl gnupg build-essential pwgen libffi-dev sudo git-core wget libpq-dev g++ unixodbc-dev xmlsec1 libssl-dev default-libmysqlclient-dev freetds-dev libsasl2-dev unzip apt-transport-https ca-certificates libsasl2-modules-gssapi-mit && curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - && curl https://packages.microsoft.com/config/debian/10/prod.list > /etc/apt/sources.list.d/mssql-release.list && apt-get update && ACCEPT_EULA=Y apt-get install -y msodbcsql17 && apt-get clean && rm -rf /var/lib/apt/lists/*’ returned a non-zero code: 100

I’ve tried uninstalling/reinstalling/cleaning and what was suggested here: Unable to docker-compose build but did not work. Might have something to do with mysql limitations with Docker for M1: Apple M1 Tech Preview | Docker Documentation Can anyone think of any workarounds?

Technical details:

Are you using the M1 compatible docker installation? Or are you running the x86 version via translation? I also use an M1 laptop and have done both but it works better with Rosetta2 (translation) because the Apple Silicone compiled version is just unstable.

I am using the M1 Docker Preview. Do you have instructions on how I can run the x86 version via translation? When I try to download the non-M1 version it say there’s an incompatibility problem. Not sure what the next steps are exactly to set it up like you have. Thank you!!

You’re right. It shows me an error when I try now.

I can’t get Docker on M1 running at all without a bunch of kernel panics. Best to wait until it’s no longer in preview before attempting this again.