Is storage persistant? #149

Closed
opened 2025-12-28 23:26:23 +01:00 by adam · 3 comments
Owner

Originally created by @samchouse on GitHub (Mar 19, 2021).

I saw that your saving to a tmp directory but it does not seem like that is the actual OS. Is there a way to keep my data or will it be wiped each time?

Originally created by @samchouse on GitHub (Mar 19, 2021). I saw that your saving to a tmp directory but it does not seem like that is the actual OS. Is there a way to keep my data or will it be wiped each time?
adam closed this issue 2025-12-28 23:26:23 +01:00
Author
Owner

@samchouse commented on GitHub (Mar 19, 2021):

Nevermind found what I was looking for.

@samchouse commented on GitHub (Mar 19, 2021): Nevermind found what I was looking for.
Author
Owner

@shahidcodes commented on GitHub (Aug 25, 2021):

Share what have you found?

@shahidcodes commented on GitHub (Aug 25, 2021): Share what have you found?
Author
Owner

@samchouse commented on GitHub (Aug 25, 2021):

I ended up making a script.

#!/bin/bash

cd /var/lib/docker/overlay2/4cba4fb2343e8673cb32c2bce509e9b960e4f56c4b71df81dae1215ee0aca57d/diff/home/arch/OSX-KVM

docker run -it \
    --device /dev/kvm \
    -p 50922:10022 \
    -v "${PWD}/mac_hdd_ng.img:/image" \
    -v /tmp/.X11-unix:/tmp/.X11-unix \
    -e "DISPLAY=${DISPLAY:-:0.0}" \
    sickcodes/docker-osx:naked

Replace the path to whatever yours is (you get it by running the image first).

@samchouse commented on GitHub (Aug 25, 2021): I ended up making a script. ``` #!/bin/bash cd /var/lib/docker/overlay2/4cba4fb2343e8673cb32c2bce509e9b960e4f56c4b71df81dae1215ee0aca57d/diff/home/arch/OSX-KVM docker run -it \ --device /dev/kvm \ -p 50922:10022 \ -v "${PWD}/mac_hdd_ng.img:/image" \ -v /tmp/.X11-unix:/tmp/.X11-unix \ -e "DISPLAY=${DISPLAY:-:0.0}" \ sickcodes/docker-osx:naked ``` Replace the path to whatever yours is (you get it by running the image first).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Docker-OSX#149