-
Notifications
You must be signed in to change notification settings - Fork 213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
S6 Overlay 3.0.0.x hangs on executing interactive terminal on M1 Macs #396
Comments
Basic sanity check: when you're running the container on a M1 Mac, are you changing If you are, it's probably because our aarch64 binaries are optimized for the Raspberry Pi 4, and not suited to the Firestorm and Icestorm, in which case I'll try and make a toolchain for the M1 so we can explicitly support it. |
@skarnet @jaydrogers |
Thank you @skarnet and @shinsenter! I confirmed changing Just out of curiosityIn S6 Overlay v2.x, I was able to run this on my M1 Mac:
With I'm a novice when it comes to the differences in architectures, so I would appreciate any insight if you could share some. Thanks again for all your work! |
I have no idea! All I know is that our prebuilt |
I honestly have no idea how the amd64 version was working on Intel macs. I do know that on macOS, Docker Desktop is running a Linux VM. From that output above, it looks like Docker Desktop runs a VM that matches your host architecture (presumably on amd64, it runs an amd64 VM, on aarch64, it runs an aarch64 VM, etc). Docker Desktop is supposed to have transparent support for multiple architectures, and it mentions QEMU on this page but it's scant on details. So, I'm unsure if the translation is happening in:
I'm sure there's a document somewhere with better details, but on Docker Desktop it seems to be pretty much magic. |
Closing this - we'll solve the mysteries of Docker Desktop another day in another issue. ;-) |
When running under QEMU on an M1 w/
|
Issue Description
When I attempt to run a simple S6 Overlay container with the
-it
flag on a Macbook Pro M1 Max, the container hangs and no output is displayed. I cannot exit the container from CLI either.Important notes:
Steps to reproduce the issue
docker run --platform linux/amd64 --rm -it serversideup/docker-baseimage-s6-overlay-ubuntu:edge-3-20.04 bash
You will notice that a bash shell does not appear, nor can you exit the container with
CTRL + C
.Related issues on other repositories
I have a PR that I am working on for my own open source repo. You can see the full conversation if you'd like here: serversideup/s6-overlay#3
The
serversideup/docker-baseimage-s6-overlay-ubuntu:edge-3-20.04
is a prebuilt image of the Dockerfile below:My Dockerfile
Dockerfile
Environment
✅ Works fine on an Intel Mac
❌ DOES NOT work on M1 Mac
Next steps
Thanks for maintaining this project. Please let me know if you need any more information! Would greatly appreciate any insight on this! 🙌
The text was updated successfully, but these errors were encountered: