[GH-ISSUE #703] Can we use "docker run --detach" to run in background? #537

Open
opened 2026-02-27 23:00:58 +03:00 by kerem · 1 comment
Owner

Originally created by @impvd on GitHub (Sep 26, 2023).
Original GitHub issue: https://github.com/sickcodes/Docker-OSX/issues/703

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). Original GitHub issue: https://github.com/sickcodes/Docker-OSX/issues/703 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?

<!-- gh-comment-id:1820839107 --> @muditgupta-codez commented on GitHub (Nov 21, 2023): Have you tried this, Does this work?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Docker-OSX#537
No description provided.