Trying to start docker-osx on linux ec2 #371

Open
opened 2025-12-29 00:25:33 +01:00 by adam · 1 comment
Owner

Originally created by @tomcallaghan97 on GitHub (Jun 9, 2022).

Screenshot 2022-06-09 at 15 16 00

Tried to run

docker run --privileged -e "DISPLAY=${DISPLAY:-:0.0}" -v /tmp/.X11-unix:/tmp/.X11-unix sickcodes/docker-osx

But getting the following errors:

kvm version too old
qemu-system-x86_64: failed to initialize kvm: Inappropriate ioctl for device
qemu-system-x86_64: falling back to tcg

I am running docker inside of linux ec2 instance.

I also tried running this

docker run -it
--device /dev/kvm
-p 50922:10022
-v /tmp/.X11-unix:/tmp/.X11-unix
-e "DISPLAY=${DISPLAY:-:0.0}"
sickcodes/docker-osx:latest

But get this error

docker: Error response from daemon: error gathering device information while adding custom device "/dev/kvm": no such file or directory.

Any help would be much appreciated.

Originally created by @tomcallaghan97 on GitHub (Jun 9, 2022). ![Screenshot 2022-06-09 at 15 16 00](https://user-images.githubusercontent.com/27969024/172868771-f008b4f9-7139-4e7a-9d98-1046982d4816.png) Tried to run _docker run --privileged -e "DISPLAY=${DISPLAY:-:0.0}" -v /tmp/.X11-unix:/tmp/.X11-unix sickcodes/docker-osx_ But getting the following errors: _kvm version too old qemu-system-x86_64: failed to initialize kvm: Inappropriate ioctl for device qemu-system-x86_64: falling back to tcg_ I am running docker inside of linux ec2 instance. I also tried running this _docker run -it \ --device /dev/kvm \ -p 50922:10022 \ -v /tmp/.X11-unix:/tmp/.X11-unix \ -e "DISPLAY=${DISPLAY:-:0.0}" \ sickcodes/docker-osx:latest_ But get this error _docker: Error response from daemon: error gathering device information while adding custom device "/dev/kvm": no such file or directory._ Any help would be much appreciated.
Author
Owner

@dumbasPL commented on GitHub (Jun 13, 2022):

AFAIK ec2 does not support virtualization

@dumbasPL commented on GitHub (Jun 13, 2022): AFAIK ec2 does not support virtualization
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Docker-OSX#371