Skip to content
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

Can't chroot from a vz container #1015

Open
1 of 5 tasks
jemershaw opened this issue Apr 9, 2024 · 0 comments
Open
1 of 5 tasks

Can't chroot from a vz container #1015

jemershaw opened this issue Apr 9, 2024 · 0 comments

Comments

@jemershaw
Copy link

Description

When trying to run chroot in a amd64 container it core dumps when trying to run the chroot commands. It seems like docker desktop was able to fix this here.

Version

┗╸❯❯❯ colima version && limactl --version && qemu-img --version
colima version 0.6.8
git commit: 9b0809d0ed9ad3ff1e57c405f27324e6298ca04f

runtime: docker
arch: aarch64
client: v25.0.3
server: v24.0.9
limactl version 0.21.0
qemu-img version 8.2.1
Copyright (c) 2003-2023 Fabrice Bellard and the QEMU Project developers

Operating System

  • macOS Intel <= 13 (Ventura)
  • macOS Intel >= 14 (Sonoma)
  • Apple Silicon <= 13 (Ventura)
  • Apple Silicon >= 14 (Sonoma)
  • Linux

Output of colima status

┗╸❯❯❯ colima status
INFO[0000] colima is running using macOS Virtualization.Framework
INFO[0000] arch: aarch64
INFO[0000] runtime: docker
INFO[0000] mountType: virtiofs
INFO[0000] socket: unix:///Users/jemershaw/.colima/default/docker.sock

Reproduction Steps

  1. colima start --activate -c 10 -d 100 -m 8 --ssh-agent --vm-type vz --vz-rosetta --mount-type virtiofs
  2. export DOCKER_DEFAULT_PLATFORM=linux/amd64
  3. DOCKER_DEFAULT_PLATFORM=linux/amd64 docker run --rm -it --privileged ubuntu
  4. apt-get update && apt-get install -y debootstrap
  5. mkdir -p /rootfs
  6. export DEBIAN_FRONTEND=noninteractive
  7. debootstrap focal /rootfs ||
    (cat /rootfs/debootstrap/debootstrap.log && false)

Expected behaviour

The output should show

rosetta error: Unable to open /proc/self/exe: 40
 Trace/breakpoint trap (core dumped)

This is due to trying to run a chroot, but it seems like it was fixed in docker desktop here docker/for-mac#6973

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant