-
-
Notifications
You must be signed in to change notification settings - Fork 368
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
Cross-compiling linux/amd64
on M1 mac
#165
Comments
I'm on Intel, but a few months ago I was cross-compiling for ARM without issue simply by passing Is there a reason to have separate VMs? For example, when testing Home Assistant builds, it will build containers all within one command for all of the different architectures. |
Nothing changed, the separate VM was just an added option for anyone that prefers that. @deviantintegral what is the output of |
|
Looks like https://docs.docker.com/buildx/working-with-buildx/
I also used to be able to run cross-platform images, and not just through buildx:
It would be nice if colima could alert when there's a new VM image available. Should I file an issue for that? Given how it seems you expected buildx to be present, I deleted the VM and recreated it. A new version was downloaded, and I'm able to run sh with aarch64. However,
|
It does look like |
It is not missing, it actually needs to be installed on same host as the docker client. |
@lpgauth is the |
|
I've made some discoveries, when I adjust the ulimit it seems to sometimes succeed and sometimes fail; on failure a core dump file is generated; I'm not familiar with erlang so I can't provide more information. How to modify ulimit: # install vim
colima ssh
sudo apk add vim
# change 'rc_ulimit' line to 'rc_ulimit="-c unlimited -n 65536 -i 65536 -s 65536 -l 65536 -u unlimited"'
vim /etc/init.d/docker
vim /etc/init.d/buildkitd
# restart colima
colima stop && colima start |
@mritd interesting, I will try to replicate and have a look at the core dump. |
Same problem. Frequent hangs during build or run with
Is there anything I can do? |
@lpgauth Did you have to do something special to get all these different emulated architectures for |
Same issue when compiling golang, I tried adjusting the ulimit but it didn't seem to make any difference. |
starting |
I think I have a similar problem. While I currently do not mind not being able to build for I never had Docker Desktop on this MacBook (M1, MacOS 13.5). I installed colima, docker, docker-compose and docker-buildx. The hello-world container works. This is what xx@~/some-project (master) docker buildx ls
NAME/NODE DRIVER/ENDPOINT STATUS BUILDKIT PLATFORMS
colima * docker
colima colima running 23.0.6 linux/arm64
default error
desktop-linux error
Cannot load builder default: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
Cannot load builder desktop-linux: Cannot connect to the Docker daemon at unix:///Users/igvo/.docker/run/docker.sock. Is the docker daemon running? I am somehow missing This is my cpu: 2
disk: 60
memory: 2
arch: aarch64
runtime: docker
kubernetes:
enabled: false
version: v1.27.1+k3s1
k3sArgs:
- --disable=traefik
autoActivate: true
network:
address: false
dns: []
dnsHosts: {}
driver: gvproxy
forwardAgent: false
docker: {}
vmType: vz
rosetta: true
mountType: virtiofs
mountInotify: true
cpuType: ""
layer: false
provision: []
sshConfig: true
mounts: []
env: {} Can anyone see any reason why |
I'm using the following to start colima...how would I incorporate the above? brew services start colima Information: $ colima version
colima version 0.6.3
git commit: a9df8ba55e2ec9c5a9ecc4fb2ab941634b58ed3b
runtime: docker
arch: aarch64
client: v24.0.7
server: v24.0.5
$ docker buildx ls
NAME/NODE DRIVER/ENDPOINT STATUS BUILDKIT PLATFORMS
colima docker
colima colima running v0.11.6+0a15675913b7 linux/arm64, linux/amd64, linux/amd64/v2
I am looking to use Note: When doing a FATA[0000] error starting vm: error at 'starting': exit status 1 Any hints or ideas anyone? |
For anyone who might drop into this issue, you can't change vm types on existent profiles. |
Hi, I'm trying to cross-compile an image using docker buildx and Colima but it seems to just hang on the build step...
How can I debug this? I looked at the logs but didn't see anything suspicious. The qemu VM seems idle....
The text was updated successfully, but these errors were encountered: