Can we use "docker run --detach" to run in background? #537

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

Originally created by @impvd on GitHub (Sep 26, 2023).

Currently I can start the docker by:

docker run -it \
    --device /dev/kvm \
    -p 50922:10022 \
    -p 5999:5999 \
    -v /tmp/.X11-unix:/tmp/.X11-unix \
    -e "DISPLAY=${DISPLAY:-:0.0}" \
    -e EXTRA="-display none -vnc 0.0.0.0:99,password=on" \
    sickcodes/docker-osx:big-sur

And there's a (qemu) in the end of the terminal, I can access it by "vnc://192.168.86.2:5999". After configuring the mac OS, and I type "ctrl+c" to exit the (qemu), nothing in the docker ps anymore:(

I want to make this macOS in background, from my understanding, we can use docker run --detach to make a container run in background. But I can't find anything related to this in README.

Originally created by @impvd on GitHub (Sep 26, 2023). Currently I can start the docker by: ``` docker run -it \ --device /dev/kvm \ -p 50922:10022 \ -p 5999:5999 \ -v /tmp/.X11-unix:/tmp/.X11-unix \ -e "DISPLAY=${DISPLAY:-:0.0}" \ -e EXTRA="-display none -vnc 0.0.0.0:99,password=on" \ sickcodes/docker-osx:big-sur ``` And there's a `(qemu)` in the end of the terminal, I can access it by "vnc://192.168.86.2:5999". After configuring the mac OS, and I type "ctrl+c" to exit the `(qemu)`, nothing in the `docker ps` anymore:( I want to make this macOS in background, from my understanding, we can use `docker run --detach` to make a container run in background. But I can't find anything related to this in README.
Author
Owner

@muditgupta-codez commented on GitHub (Nov 21, 2023):

Have you tried this, Does this work?

@muditgupta-codez commented on GitHub (Nov 21, 2023): Have you tried this, Does this work?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Docker-OSX#537