mirror of
https://github.com/sickcodes/Docker-OSX.git
synced 2026-01-13 22:03:28 +01:00
Unable to Run Imported Container (Sonoma) #638
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @gyoussef55 on GitHub (Jan 10, 2025).
I exported the macOS Sonoma container using
docker exportand also saved the associated settings in a JSON file. Now, I want to import it and run it again, but I'm unsure of the process. Previously, I built the container using the following command:docker run -it --device /dev/kvm -p 50922:10022 -v /tmp/.X11-unix:/tmp/.X11-unix -e "DISPLAY=${DISPLAY:-:0.0}" -e GENERATE_UNIQUE=true -e CPU='Haswell-noTSX' -e CPUID_FLAGS='kvm=on,vendor=GenuineIntel,+invtsc,vmware-cpuid-freq=on' -e MASTER_PLIST_URL='https://raw.githubusercontent.com/sickcodes/osx-serial-generator/master/config-custom.plist' seraphix/docker-osx:sonomaHowever, I’m not sure how to proceed with importing and running the container now.
configuration
`[
{
"Id":"103682eddf27bce09a5e13607ca44c5bc863ac7e6d97bdddf161c5e16fa9f92b",
"Created":"2024-09-22T20:55:28.414322476Z",
"Path":"/bin/bash",
"Args":[
"-c",
"sudo touch /dev/kvm /dev/snd "${IMAGE_PATH}" "${BOOTDISK}" "${ENV}" 2>/dev/null || true ; sudo chown -R $(id -u):$(id -g) /dev/kvm /dev/snd "${IMAGE_PATH}" "${BOOTDISK}" "${ENV}" 2>/dev/null || true ; && { sed -i '/^.InstallMedia./d' Launch.sh && export BOOTDISK="${BOOTDISK:=/home/arch/OSX-KVM/OpenCore/OpenCore-nopicker.qcow2}" ; } || export BOOTDISK="${BOOTDISK:=/home/arch/OSX-KVM/OpenCore/OpenCore.qcow2}" ; && { ./Docker-OSX/osx-serial-generator/generate-unique-machine-values.sh --master-plist-url="${MASTER_PLIST_URL}" --count 1 --tsv ./serial.tsv --bootdisks --width "${WIDTH:-1920}" --height "${HEIGHT:-1080}" --output-bootdisk "${BOOTDISK:=/home/arch/OSX-KVM/OpenCore/OpenCore.qcow2}" --output-env "${ENV:=/env}" || exit 1 ; } ; && { source "${ENV:=/env}" 2>/dev/null ; ./Docker-OSX/osx-serial-generator/generate-specific-bootdisk.sh --master-plist-url="${MASTER_PLIST_URL}" --model "${DEVICE_MODEL}" --serial "${SERIAL}" --board-serial "${BOARD_SERIAL}" --uuid "${UUID}" --mac-address "${MAC_ADDRESS}" --width "${WIDTH:-1920}" --height "${HEIGHT:-1080}" --output-bootdisk "${BOOTDISK:=/home/arch/OSX-KVM/OpenCore/OpenCore.qcow2}" || exit 1 ; } ; ./enable-ssh.sh && /bin/bash -c ./Launch.sh"
],
"State":{
"Status":"exited",
"Running":false,
"Paused":false,
"Restarting":false,
"OOMKilled":false,
"Dead":false,
"Pid":0,
"ExitCode":0,
"Error":"",
"StartedAt":"2025-01-03T19:58:36.152925485Z",
"FinishedAt":"2025-01-03T19:59:58.609948517Z"
},
"Image":"sha256:ef9bfd732a07d3228163119b7554b7dd6e0366773cb9d8ae5d336f3ba2149484",
"ResolvConfPath":"/var/lib/docker/containers/103682eddf27bce09a5e13607ca44c5bc863ac7e6d97bdddf161c5e16fa9f92b/resolv.conf",
"HostnamePath":"/var/lib/docker/containers/103682eddf27bce09a5e13607ca44c5bc863ac7e6d97bdddf161c5e16fa9f92b/hostname",
"HostsPath":"/var/lib/docker/containers/103682eddf27bce09a5e13607ca44c5bc863ac7e6d97bdddf161c5e16fa9f92b/hosts",
"LogPath":"/var/lib/docker/containers/103682eddf27bce09a5e13607ca44c5bc863ac7e6d97bdddf161c5e16fa9f92b/103682eddf27bce09a5e13607ca44c5bc863ac7e6d97bdddf161c5e16fa9f92b-json.log",
"Name":"/affectionate_leakey",
"RestartCount":0,
"Driver":"overlay2",
"Platform":"linux",
"MountLabel":"",
"ProcessLabel":"",
"AppArmorProfile":"docker-default",
"ExecIDs":null,
"HostConfig":{
"Binds":[
"/tmp/.X11-unix:/tmp/.X11-unix"
],
"ContainerIDFile":"",
"LogConfig":{
"Type":"json-file",
"Config":{
}
]`