Skip to content

Does not run on Mac with ARM64 architecture #285

@AugustoCiuffoletti

Description

@AugustoCiuffoletti

The problem
The image built on an ARM64 machine does not run on the same machine, which is a new Mac with an ARM64 processor.

Long description: I would like to build a two-dockers system for teaching networking protocols. One of them has to run Wireshark for packet capture and analysis. Some students have amd64, others have arm64. A docker-based lab is a solution, which is going to replace the previous VirtualBox-based one. Note that the image built for an amd64 runs on an arm64 architecture, but packet capture does not work :-/

To Reproduce

  1. git clone https://github.com/fcwu/docker-ubuntu-vnc-desktop.git
  2. cd docker-ubuntu-vnc-desktop
  3. git submodule init; git submodule update
  4. make extra-clean
  5. ARCH=arm64 make build
  6. make run

Expected behavior
At this point, the docker should become accessible using localhost:6080. Instead, the image does not boot, and this is the log:

% make run             
docker run --privileged --rm \
-p 6080:80 -p 6081:443 \
-v /Users/lucapagnesi/Documents/docker/docker-ubuntu-vnc-desktop:/src:ro \
-e USER=doro -e PASSWORD=mypassword \
-e ALSADEV=hw:2,0 \
-e SSL_PORT=443 \
-e RELATIVE_URL_ROOT=approot \
-e OPENBOX_ARGS="--startup /usr/bin/galculator" \
-v /Users/lucapagnesi/Documents/docker/docker-ubuntu-vnc-desktop/ssl:/etc/nginx/ssl \
--device /dev/snd \
--name ubuntu-desktop-lxde-test \
dorowu/ubuntu-desktop-lxde-vnc:latest
* enable custom user: doro
cp: cannot stat '/root/.config': No such file or directory
* enable RELATIVE_URL_ROOT: approot
qemu-x86_64: Could not open '/lib64/ld-linux-x86-64.so.2': No such file or directory
make: *** [run] Error 255

The same occurs if at step 5 we use simply "make build".
The operating system on the host machine is MacOS Monterey 12.4.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions