You've already forked Docker-OSX
mirror of
https://github.com/sickcodes/Docker-OSX.git
synced 2025-07-02 18:53:31 -05:00
Compare commits
29 Commits
cpu-max-fe
...
monterey
Author | SHA1 | Date | |
---|---|---|---|
423d6697c3 | |||
15fa5d3ef7 | |||
b97d6134f0 | |||
c2fca85acf | |||
48db29e013 | |||
1f9807929e | |||
911dad8b58 | |||
0865bb21c1 | |||
31c95fd640 | |||
a9479fb875 | |||
aabf8d949a | |||
e7070fd1cd | |||
5ca6529ae2 | |||
61012cf0c8 | |||
cdf9dae7f2 | |||
d12612bb35 | |||
b96bac8cd2 | |||
ae32ff2cb4 | |||
9a8239f8ec | |||
5e294d35c1 | |||
458c4781cd | |||
ca92e33b20 | |||
d910db6958 | |||
87efcbb6f6 | |||
d2dadeea4d | |||
127fca4718 | |||
f4fd2d53fd | |||
ddc92a2675 | |||
010dc94818 |
@ -1,5 +1,9 @@
|
|||||||
|Version|Date|Notes|
|
|Version|Date|Notes|
|
||||||
|---|---|---|
|
|---|---|---|
|
||||||
|
| |2021-09-09|Add Monterey|
|
||||||
|
| |2021-08-27|Add iPhone passthrough OTA!|
|
||||||
|
|6.0|2021-08-25|Added naked-auto. Keep kernel at 5.13, even tho it's just for supermin.|
|
||||||
|
|5.0|2021-07-25|Retire glibc patch. Retire file command patch. Add bootmenu=on.|
|
||||||
| |2021-07-08|Add CPUID_FLAGS to edit the CPUID flags on the fly.|
|
| |2021-07-08|Add CPUID_FLAGS to edit the CPUID flags on the fly.|
|
||||||
|4.4|2021-05-06|Prepare nakedvnc for hub.docker.com. Add `ENV BOOT_ARGS=` to supply additon boot arguments, for example, `vmx,rdtscp`. Add `ENV CPU=Penryn` to allow changes to the CPU emulation, for example, `Skylake-Client`, or see [more examples here](https://manpages.ubuntu.com/manpages/disco/man7/qemu-cpu-models.7.html).|
|
|4.4|2021-05-06|Prepare nakedvnc for hub.docker.com. Add `ENV BOOT_ARGS=` to supply additon boot arguments, for example, `vmx,rdtscp`. Add `ENV CPU=Penryn` to allow changes to the CPU emulation, for example, `Skylake-Client`, or see [more examples here](https://manpages.ubuntu.com/manpages/disco/man7/qemu-cpu-models.7.html).|
|
||||||
| |2021-05-04|Disable arbitrary chown warning|
|
| |2021-05-04|Disable arbitrary chown warning|
|
||||||
|
18
CREDITS.md
18
CREDITS.md
@ -22,7 +22,7 @@ This project now uses the fantastic OpenCore bootloader from the community OpenC
|
|||||||
|
|
||||||
[@qcasey](https://github.com/qcasey) - Removed unnecessary yay in Remove yay dependancy #40
|
[@qcasey](https://github.com/qcasey) - Removed unnecessary yay in Remove yay dependancy #40
|
||||||
|
|
||||||
[@tlierdotfr](https://github.com/tlierdotfr) - Reduce number of layers in Dockerfile
|
[@tlierdotfr](https://github.com/tlierdotfr) - Reduce number of layers in Dockerfile
|
||||||
|
|
||||||
[@Julioevm](https://github.com/Julioevm) - Update docker-compose.yml #57
|
[@Julioevm](https://github.com/Julioevm) - Update docker-compose.yml #57
|
||||||
|
|
||||||
@ -46,7 +46,7 @@ This project now uses the fantastic OpenCore bootloader from the community OpenC
|
|||||||
|
|
||||||
[@PeterDaveHello](https://github.com/PeterDaveHello) - Reduce image size by setting git clone depth #110
|
[@PeterDaveHello](https://github.com/PeterDaveHello) - Reduce image size by setting git clone depth #110
|
||||||
|
|
||||||
[@PeterDaveHello](https://github.com/PeterDaveHello) - Reduce Dockerfile instructions and Docker image layers #112
|
[@PeterDaveHello](https://github.com/PeterDaveHello) - Reduce Dockerfile instructions and Docker image layers #112
|
||||||
|
|
||||||
[@weskerfoot](https://github.com/weskerfoot) Docs updates: usb passthrough, headless mode, disk space reduction guide #113
|
[@weskerfoot](https://github.com/weskerfoot) Docs updates: usb passthrough, headless mode, disk space reduction guide #113
|
||||||
|
|
||||||
@ -68,7 +68,7 @@ This project now uses the fantastic OpenCore bootloader from the community OpenC
|
|||||||
|
|
||||||
[@TheHackerCoding](https://github.com/TheHackerCoding) - Typo in README.md #194
|
[@TheHackerCoding](https://github.com/TheHackerCoding) - Typo in README.md #194
|
||||||
|
|
||||||
[@panos](https://github.com/panos) - Improved README #212
|
[@panos](https://github.com/panos) - Improved README #212
|
||||||
|
|
||||||
[@ggjulio](https://github.com/ggjulio) - Restarting an "auto" container #216
|
[@ggjulio](https://github.com/ggjulio) - Restarting an "auto" container #216
|
||||||
|
|
||||||
@ -80,6 +80,16 @@ This project now uses the fantastic OpenCore bootloader from the community OpenC
|
|||||||
|
|
||||||
[@aronzvi](https://github.com/aronzvi) - Fixed Failed to boot OSX with GENERATE_UNIQUE #244
|
[@aronzvi](https://github.com/aronzvi) - Fixed Failed to boot OSX with GENERATE_UNIQUE #244
|
||||||
|
|
||||||
[@tinjaw](https://github.com/tinjaw) - Fixed Type #258
|
[@tinjaw](https://github.com/tinjaw) - Fixed Type #258
|
||||||
|
|
||||||
[@m-zheng](https://github.com/m-zheng) - Update README.md #260
|
[@m-zheng](https://github.com/m-zheng) - Update README.md #260
|
||||||
|
|
||||||
|
[@johnjhacking](https://github.com/johnjhacking) - Change call function to Popen #288
|
||||||
|
|
||||||
|
[@allansrc](https://github.com/allansrc) - Update Doc detail for run on WLS #318
|
||||||
|
|
||||||
|
[@mcandre](https://github.com/mcandre) - fix typo #334
|
||||||
|
|
||||||
|
[@cybik](https://github.com/cybik) Spice fix #337
|
||||||
|
|
||||||
|
[@Silfalion](https://github.com/Silfalion) - [https://github.com/Silfalion/Iphone_docker_osx_passthrough](https://github.com/Silfalion/Iphone_docker_osx_passthrough)
|
58
Dockerfile
58
Dockerfile
@ -7,7 +7,7 @@
|
|||||||
#
|
#
|
||||||
# Title: Docker-OSX (Mac on Docker)
|
# Title: Docker-OSX (Mac on Docker)
|
||||||
# Author: Sick.Codes https://twitter.com/sickcodes
|
# Author: Sick.Codes https://twitter.com/sickcodes
|
||||||
# Version: 4.4
|
# Version: 6.0
|
||||||
# License: GPLv3+
|
# License: GPLv3+
|
||||||
# Repository: https://github.com/sickcodes/Docker-OSX
|
# Repository: https://github.com/sickcodes/Docker-OSX
|
||||||
# Website: https://sick.codes
|
# Website: https://sick.codes
|
||||||
@ -67,12 +67,6 @@ ARG RANKMIRRORS
|
|||||||
ARG MIRROR_COUNTRY=US
|
ARG MIRROR_COUNTRY=US
|
||||||
ARG MIRROR_COUNT=10
|
ARG MIRROR_COUNT=10
|
||||||
|
|
||||||
# TEMP-FIX for pacman issue
|
|
||||||
RUN patched_glibc=glibc-linux4-2.33-4-x86_64.pkg.tar.zst \
|
|
||||||
&& curl -LO "https://raw.githubusercontent.com/sickcodes/Docker-OSX/master/${patched_glibc}" \
|
|
||||||
&& bsdtar -C / -xvf "${patched_glibc}" || echo "Everything is fine."
|
|
||||||
# TEMP-FIX for pacman issue
|
|
||||||
|
|
||||||
RUN if [[ "${RANKMIRRORS}" ]]; then \
|
RUN if [[ "${RANKMIRRORS}" ]]; then \
|
||||||
{ pacman -Sy wget --noconfirm || pacman -Syu wget --noconfirm ; } \
|
{ pacman -Sy wget --noconfirm || pacman -Syu wget --noconfirm ; } \
|
||||||
; wget -O ./rankmirrors "https://raw.githubusercontent.com/sickcodes/Docker-OSX/master/rankmirrors" \
|
; wget -O ./rankmirrors "https://raw.githubusercontent.com/sickcodes/Docker-OSX/master/rankmirrors" \
|
||||||
@ -99,12 +93,6 @@ RUN pacman -Syu git zip vim nano alsa-utils openssh --noconfirm \
|
|||||||
&& mkdir /home/arch \
|
&& mkdir /home/arch \
|
||||||
&& chown arch:arch /home/arch
|
&& chown arch:arch /home/arch
|
||||||
|
|
||||||
# TEMP-FIX for pacman issue
|
|
||||||
RUN patched_glibc=glibc-linux4-2.33-4-x86_64.pkg.tar.zst \
|
|
||||||
&& curl -LO "https://raw.githubusercontent.com/sickcodes/Docker-OSX/master/${patched_glibc}" \
|
|
||||||
&& bsdtar -C / -xvf "${patched_glibc}" || echo "Everything is fine."
|
|
||||||
# TEMP-FIX for pacman issue
|
|
||||||
|
|
||||||
# allow ssh to container
|
# allow ssh to container
|
||||||
RUN mkdir -m 700 /root/.ssh
|
RUN mkdir -m 700 /root/.ssh
|
||||||
|
|
||||||
@ -126,6 +114,7 @@ RUN tee -a sshd_config <<< 'AllowTcpForwarding yes' \
|
|||||||
USER arch
|
USER arch
|
||||||
|
|
||||||
# download OSX-KVM
|
# download OSX-KVM
|
||||||
|
# RUN git clone --recurse-submodules --depth 1 https://github.com/kholia/OSX-KVM.git /home/arch/OSX-KVM
|
||||||
RUN git clone --recurse-submodules --depth 1 https://github.com/kholia/OSX-KVM.git /home/arch/OSX-KVM
|
RUN git clone --recurse-submodules --depth 1 https://github.com/kholia/OSX-KVM.git /home/arch/OSX-KVM
|
||||||
|
|
||||||
# enable ssh
|
# enable ssh
|
||||||
@ -154,15 +143,6 @@ RUN touch enable-ssh.sh \
|
|||||||
RUN yes | sudo pacman -Syu qemu libvirt dnsmasq virt-manager bridge-utils openresolv jack ebtables edk2-ovmf netctl libvirt-dbus wget --overwrite --noconfirm \
|
RUN yes | sudo pacman -Syu qemu libvirt dnsmasq virt-manager bridge-utils openresolv jack ebtables edk2-ovmf netctl libvirt-dbus wget --overwrite --noconfirm \
|
||||||
&& yes | sudo pacman -Scc
|
&& yes | sudo pacman -Scc
|
||||||
|
|
||||||
# TEMP-FIX for pacman issue
|
|
||||||
RUN patched_glibc=glibc-linux4-2.33-4-x86_64.pkg.tar.zst \
|
|
||||||
&& curl -LO "https://raw.githubusercontent.com/sickcodes/Docker-OSX/master/${patched_glibc}" \
|
|
||||||
&& bsdtar -C / -xvf "${patched_glibc}" || echo "Everything is fine."
|
|
||||||
# TEMP-FIX for pacman issue
|
|
||||||
|
|
||||||
# RUN sudo systemctl enable libvirtd.service
|
|
||||||
# RUN sudo systemctl enable virtlogd.service
|
|
||||||
|
|
||||||
WORKDIR /home/arch/OSX-KVM
|
WORKDIR /home/arch/OSX-KVM
|
||||||
|
|
||||||
RUN wget https://raw.githubusercontent.com/sickcodes/Docker-OSX/master/fetch-macOS.py
|
RUN wget https://raw.githubusercontent.com/sickcodes/Docker-OSX/master/fetch-macOS.py
|
||||||
@ -192,21 +172,12 @@ ARG LINUX=true
|
|||||||
# required to use libguestfs inside a docker container, to create bootdisks for docker-osx on-the-fly
|
# required to use libguestfs inside a docker container, to create bootdisks for docker-osx on-the-fly
|
||||||
RUN if [[ "${LINUX}" == true ]]; then \
|
RUN if [[ "${LINUX}" == true ]]; then \
|
||||||
sudo pacman -Syu linux libguestfs --noconfirm \
|
sudo pacman -Syu linux libguestfs --noconfirm \
|
||||||
&& patched_glibc=glibc-linux4-2.33-4-x86_64.pkg.tar.zst \
|
|
||||||
&& curl -LO "https://raw.githubusercontent.com/sickcodes/Docker-OSX/master/${patched_glibc}" \
|
|
||||||
&& bsdtar -C / -xvf "${patched_glibc}" || echo "Everything is fine." \
|
|
||||||
; fi
|
; fi
|
||||||
|
|
||||||
# TEMP-FIX for file 5.40 libguestfs issue
|
|
||||||
RUN yes | sudo pacman -U https://archive.archlinux.org/packages/f/file/file-5.39-1-x86_64.pkg.tar.zst \
|
|
||||||
&& patched_glibc=glibc-linux4-2.33-4-x86_64.pkg.tar.zst \
|
|
||||||
&& curl -LO "https://raw.githubusercontent.com/sickcodes/Docker-OSX/master/${patched_glibc}" \
|
|
||||||
&& bsdtar -C / -xvf "${patched_glibc}" || echo "Everything is fine."
|
|
||||||
# TEMP-FIX for file 5.40 libguestfs issue
|
|
||||||
|
|
||||||
# optional --build-arg to change branches for testing
|
# optional --build-arg to change branches for testing
|
||||||
ARG BRANCH=master
|
ARG BRANCH=master
|
||||||
ARG REPO='https://github.com/sickcodes/Docker-OSX.git'
|
ARG REPO='https://github.com/sickcodes/Docker-OSX.git'
|
||||||
|
# RUN git clone --recurse-submodules --depth 1 --branch "${BRANCH}" "${REPO}"
|
||||||
RUN git clone --recurse-submodules --depth 1 --branch "${BRANCH}" "${REPO}"
|
RUN git clone --recurse-submodules --depth 1 --branch "${BRANCH}" "${REPO}"
|
||||||
|
|
||||||
RUN touch Launch.sh \
|
RUN touch Launch.sh \
|
||||||
@ -219,12 +190,12 @@ RUN touch Launch.sh \
|
|||||||
&& tee -a Launch.sh <<< '[[ "${RAM}" = half ]] && export RAM="$(("$(head -n1 /proc/meminfo | tr -dc "[:digit:]") / 2000000"))"' \
|
&& tee -a Launch.sh <<< '[[ "${RAM}" = half ]] && export RAM="$(("$(head -n1 /proc/meminfo | tr -dc "[:digit:]") / 2000000"))"' \
|
||||||
&& tee -a Launch.sh <<< 'sudo chown -R $(id -u):$(id -g) /dev/snd 2>/dev/null || true' \
|
&& tee -a Launch.sh <<< 'sudo chown -R $(id -u):$(id -g) /dev/snd 2>/dev/null || true' \
|
||||||
&& tee -a Launch.sh <<< 'exec qemu-system-x86_64 -m ${RAM:-2}000 \' \
|
&& tee -a Launch.sh <<< 'exec qemu-system-x86_64 -m ${RAM:-2}000 \' \
|
||||||
&& tee -a Launch.sh <<< '-cpu ${CPU:-max},${CPUID_FLAGS:-vendor=GenuineIntel,+invtsc,vmware-cpuid-freq=on,+pcid,+ssse3,+sse4.2,+popcnt,+avx,+aes,+xsave,+xsaveopt,check,}${BOOT_ARGS} \' \
|
&& tee -a Launch.sh <<< '-cpu ${CPU:-Penryn},${CPUID_FLAGS:-vendor=GenuineIntel,+invtsc,vmware-cpuid-freq=on,+ssse3,+sse4.2,+popcnt,+avx,+aes,+xsave,+xsaveopt,check,}${BOOT_ARGS} \' \
|
||||||
&& tee -a Launch.sh <<< '-machine q35,${KVM-"accel=kvm:tcg"} \' \
|
&& tee -a Launch.sh <<< '-machine q35,${KVM-"accel=kvm:tcg"} \' \
|
||||||
&& tee -a Launch.sh <<< '-smp ${CPU_STRING:-${SMP:-4},cores=${CORES:-4}} \' \
|
&& tee -a Launch.sh <<< '-smp ${CPU_STRING:-${SMP:-4},cores=${CORES:-4}} \' \
|
||||||
&& tee -a Launch.sh <<< '-usb -device usb-kbd -device usb-tablet \' \
|
&& tee -a Launch.sh <<< '-usb -device usb-kbd -device usb-tablet \' \
|
||||||
&& tee -a Launch.sh <<< '-device isa-applesmc,osk=ourhardworkbythesewordsguardedpleasedontsteal\(c\)AppleComputerInc \' \
|
&& tee -a Launch.sh <<< '-device isa-applesmc,osk=ourhardworkbythesewordsguardedpleasedontsteal\(c\)AppleComputerInc \' \
|
||||||
&& tee -a Launch.sh <<< '-drive if=pflash,format=raw,readonly,file=/home/arch/OSX-KVM/OVMF_CODE.fd \' \
|
&& tee -a Launch.sh <<< '-drive if=pflash,format=raw,readonly=on,file=/home/arch/OSX-KVM/OVMF_CODE.fd \' \
|
||||||
&& tee -a Launch.sh <<< '-drive if=pflash,format=raw,file=/home/arch/OSX-KVM/OVMF_VARS-1024x768.fd \' \
|
&& tee -a Launch.sh <<< '-drive if=pflash,format=raw,file=/home/arch/OSX-KVM/OVMF_VARS-1024x768.fd \' \
|
||||||
&& tee -a Launch.sh <<< '-smbios type=2 \' \
|
&& tee -a Launch.sh <<< '-smbios type=2 \' \
|
||||||
&& tee -a Launch.sh <<< '-audiodev ${AUDIO_DRIVER:-alsa},id=hda -device ich9-intel-hda -device hda-duplex,audiodev=hda \' \
|
&& tee -a Launch.sh <<< '-audiodev ${AUDIO_DRIVER:-alsa},id=hda -device ich9-intel-hda -device hda-duplex,audiodev=hda \' \
|
||||||
@ -238,6 +209,7 @@ RUN touch Launch.sh \
|
|||||||
&& tee -a Launch.sh <<< '-netdev user,id=net0,hostfwd=tcp::${INTERNAL_SSH_PORT:-10022}-:22,hostfwd=tcp::${SCREEN_SHARE_PORT:-5900}-:5900,${ADDITIONAL_PORTS} \' \
|
&& tee -a Launch.sh <<< '-netdev user,id=net0,hostfwd=tcp::${INTERNAL_SSH_PORT:-10022}-:22,hostfwd=tcp::${SCREEN_SHARE_PORT:-5900}-:5900,${ADDITIONAL_PORTS} \' \
|
||||||
&& tee -a Launch.sh <<< '-device ${NETWORKING:-vmxnet3},netdev=net0,id=net0,mac=${MAC_ADDRESS:-52:54:00:09:49:17} \' \
|
&& tee -a Launch.sh <<< '-device ${NETWORKING:-vmxnet3},netdev=net0,id=net0,mac=${MAC_ADDRESS:-52:54:00:09:49:17} \' \
|
||||||
&& tee -a Launch.sh <<< '-monitor stdio \' \
|
&& tee -a Launch.sh <<< '-monitor stdio \' \
|
||||||
|
&& tee -a Launch.sh <<< '-boot menu=on \' \
|
||||||
&& tee -a Launch.sh <<< '-vga vmware \' \
|
&& tee -a Launch.sh <<< '-vga vmware \' \
|
||||||
&& tee -a Launch.sh <<< '${EXTRA:-}'
|
&& tee -a Launch.sh <<< '${EXTRA:-}'
|
||||||
|
|
||||||
@ -252,6 +224,20 @@ USER arch
|
|||||||
|
|
||||||
ENV USER arch
|
ENV USER arch
|
||||||
|
|
||||||
|
# 5.13 problem
|
||||||
|
ENV SUPERMIN_KERNEL=/boot/vmlinuz-linux
|
||||||
|
|
||||||
|
ENV SUPERMIN_MODULES=/lib/modules/5.12.14-arch1-1
|
||||||
|
|
||||||
|
ENV SUPERMIN_KERNEL_VERSION=5.12.14-arch1-1
|
||||||
|
|
||||||
|
RUN sudo pacman -Rns linux --noconfirm \
|
||||||
|
; sudo pacman -Syy \
|
||||||
|
; sudo pacman -S mkinitcpio --noconfirm \
|
||||||
|
; sudo pacman -U https://archive.archlinux.org/packages/l/linux/linux-5.12.14.arch1-1-x86_64.pkg.tar.zst --noconfirm \
|
||||||
|
; sudo rm -rf /var/tmp/.guestfs-* \
|
||||||
|
; libguestfs-test-tool
|
||||||
|
|
||||||
#### SPECIAL RUNTIME ARGUMENTS BELOW
|
#### SPECIAL RUNTIME ARGUMENTS BELOW
|
||||||
|
|
||||||
# env -e ADDITIONAL_PORTS with a comma
|
# env -e ADDITIONAL_PORTS with a comma
|
||||||
@ -264,8 +250,8 @@ ENV BOOT_ARGS=
|
|||||||
ENV BOOTDISK=
|
ENV BOOTDISK=
|
||||||
|
|
||||||
# edit the CPU that is being emulated
|
# edit the CPU that is being emulated
|
||||||
ENV CPU=max
|
ENV CPU=Penryn
|
||||||
ENV CPUID_FLAGS='vendor=GenuineIntel,+invtsc,vmware-cpuid-freq=on,+pcid,+ssse3,+sse4.2,+popcnt,+avx,+aes,+xsave,+xsaveopt,check,'
|
ENV CPUID_FLAGS='vendor=GenuineIntel,+invtsc,vmware-cpuid-freq=on,+ssse3,+sse4.2,+popcnt,+avx,+aes,+xsave,+xsaveopt,check,'
|
||||||
|
|
||||||
ENV DISPLAY=:0.0
|
ENV DISPLAY=:0.0
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
#
|
#
|
||||||
# Title: Docker-OSX (Mac on Docker)
|
# Title: Docker-OSX (Mac on Docker)
|
||||||
# Author: Sick.Codes https://twitter.com/sickcodes
|
# Author: Sick.Codes https://twitter.com/sickcodes
|
||||||
# Version: 4.4
|
# Version: 6.0
|
||||||
# License: GPLv3+
|
# License: GPLv3+
|
||||||
# Repository: https://github.com/sickcodes/Docker-OSX
|
# Repository: https://github.com/sickcodes/Docker-OSX
|
||||||
# Website: https://sick.codes
|
# Website: https://sick.codes
|
||||||
@ -56,6 +56,7 @@ ARG SCROT
|
|||||||
ARG RANKMIRRORS
|
ARG RANKMIRRORS
|
||||||
ARG MIRROR_COUNTRY=US
|
ARG MIRROR_COUNTRY=US
|
||||||
ARG MIRROR_COUNT=10
|
ARG MIRROR_COUNT=10
|
||||||
|
|
||||||
RUN if [[ "${RANKMIRRORS}" ]]; then \
|
RUN if [[ "${RANKMIRRORS}" ]]; then \
|
||||||
{ pacman -Sy wget --noconfirm || pacman -Syu wget --noconfirm ; } \
|
{ pacman -Sy wget --noconfirm || pacman -Syu wget --noconfirm ; } \
|
||||||
; wget -O ./rankmirrors "https://raw.githubusercontent.com/sickcodes/Docker-OSX/master/rankmirrors" \
|
; wget -O ./rankmirrors "https://raw.githubusercontent.com/sickcodes/Docker-OSX/master/rankmirrors" \
|
||||||
@ -70,12 +71,6 @@ RUN if [[ "${RANKMIRRORS}" ]]; then \
|
|||||||
; fi \
|
; fi \
|
||||||
; yes | pacman -Scc
|
; yes | pacman -Scc
|
||||||
|
|
||||||
# TEMP-FIX for pacman issue
|
|
||||||
RUN patched_glibc=glibc-linux4-2.33-4-x86_64.pkg.tar.zst \
|
|
||||||
&& curl -LO "https://raw.githubusercontent.com/sickcodes/Docker-OSX/master/${patched_glibc}" \
|
|
||||||
&& bsdtar -C / -xvf "${patched_glibc}" || echo "Everything is fine."
|
|
||||||
# TEMP-FIX for pacman issue
|
|
||||||
|
|
||||||
RUN pacman -Syu xorg-server-xvfb wget xterm xorg-xhost xorg-xrandr sshpass --noconfirm \
|
RUN pacman -Syu xorg-server-xvfb wget xterm xorg-xhost xorg-xrandr sshpass --noconfirm \
|
||||||
&& if [[ "${SCROT}" ]]; then \
|
&& if [[ "${SCROT}" ]]; then \
|
||||||
pacman -Syu scrot base-devel --noconfirm \
|
pacman -Syu scrot base-devel --noconfirm \
|
||||||
@ -93,21 +88,24 @@ RUN pacman -Syu xorg-server-xvfb wget xterm xorg-xhost xorg-xrandr sshpass --noc
|
|||||||
; fi \
|
; fi \
|
||||||
; yes | pacman -Scc
|
; yes | pacman -Scc
|
||||||
|
|
||||||
# TEMP-FIX for pacman issue
|
|
||||||
RUN patched_glibc=glibc-linux4-2.33-4-x86_64.pkg.tar.zst \
|
|
||||||
&& curl -LO "https://raw.githubusercontent.com/sickcodes/Docker-OSX/master/${patched_glibc}" \
|
|
||||||
&& bsdtar -C / -xvf "${patched_glibc}" || echo "Everything is fine."
|
|
||||||
# TEMP-FIX for pacman issue
|
|
||||||
|
|
||||||
# TEMP-FIX for file 5.40 libguestfs issue
|
|
||||||
RUN yes | sudo pacman -U https://archive.archlinux.org/packages/f/file/file-5.39-1-x86_64.pkg.tar.zst \
|
|
||||||
&& patched_glibc=glibc-linux4-2.33-4-x86_64.pkg.tar.zst \
|
|
||||||
&& curl -LO "https://raw.githubusercontent.com/sickcodes/Docker-OSX/master/${patched_glibc}" \
|
|
||||||
&& bsdtar -C / -xvf "${patched_glibc}" || echo "Everything is fine."
|
|
||||||
# TEMP-FIX for file 5.40 libguestfs issue
|
|
||||||
|
|
||||||
USER arch
|
USER arch
|
||||||
|
|
||||||
|
ENV USER arch
|
||||||
|
|
||||||
|
# 5.13 problem
|
||||||
|
ENV SUPERMIN_KERNEL=/boot/vmlinuz-linux
|
||||||
|
|
||||||
|
ENV SUPERMIN_MODULES=/lib/modules/5.12.14-arch1-1
|
||||||
|
|
||||||
|
ENV SUPERMIN_KERNEL_VERSION=5.12.14-arch1-1
|
||||||
|
|
||||||
|
RUN sudo pacman -Rns linux --noconfirm \
|
||||||
|
; sudo pacman -Syy \
|
||||||
|
; sudo pacman -S mkinitcpio --noconfirm \
|
||||||
|
; sudo pacman -U https://archive.archlinux.org/packages/l/linux/linux-5.12.14.arch1-1-x86_64.pkg.tar.zst --noconfirm \
|
||||||
|
; sudo rm -rf /var/tmp/.guestfs-* \
|
||||||
|
; libguestfs-test-tool
|
||||||
|
|
||||||
WORKDIR /home/arch/OSX-KVM
|
WORKDIR /home/arch/OSX-KVM
|
||||||
|
|
||||||
RUN mkdir -p ~/.ssh \
|
RUN mkdir -p ~/.ssh \
|
||||||
@ -173,6 +171,10 @@ ENV NETWORKING=vmxnet3
|
|||||||
|
|
||||||
ENV NOPICKER=true
|
ENV NOPICKER=true
|
||||||
|
|
||||||
|
# set the username and password for automatically logging in
|
||||||
|
ENV USERNAME=user
|
||||||
|
ENV PASSWORD=alpine
|
||||||
|
|
||||||
# dynamic RAM options for runtime
|
# dynamic RAM options for runtime
|
||||||
ENV RAM=3
|
ENV RAM=3
|
||||||
# ENV RAM=max
|
# ENV RAM=max
|
||||||
@ -209,7 +211,7 @@ CMD echo "${BOILERPLATE}" \
|
|||||||
--bootdisks \
|
--bootdisks \
|
||||||
--width "${WIDTH:-1920}" \
|
--width "${WIDTH:-1920}" \
|
||||||
--height "${HEIGHT:-1080}" \
|
--height "${HEIGHT:-1080}" \
|
||||||
--output-bootdisk "${BOOTDISK:-/home/arch/OSX-KVM/OpenCore-Catalina/OpenCore.qcow2}" \
|
--output-bootdisk "${BOOTDISK:=/home/arch/OSX-KVM/OpenCore-Catalina/OpenCore.qcow2}" \
|
||||||
--output-env "${ENV:=/env}" \
|
--output-env "${ENV:=/env}" \
|
||||||
|| exit 1 ; } \
|
|| exit 1 ; } \
|
||||||
; [[ "${GENERATE_SPECIFIC}" == true ]] && { \
|
; [[ "${GENERATE_SPECIFIC}" == true ]] && { \
|
||||||
@ -223,7 +225,7 @@ CMD echo "${BOILERPLATE}" \
|
|||||||
--mac-address "${MAC_ADDRESS}" \
|
--mac-address "${MAC_ADDRESS}" \
|
||||||
--width "${WIDTH:-1920}" \
|
--width "${WIDTH:-1920}" \
|
||||||
--height "${HEIGHT:-1080}" \
|
--height "${HEIGHT:-1080}" \
|
||||||
--output-bootdisk "${BOOTDISK:-/home/arch/OSX-KVM/OpenCore-Catalina/OpenCore.qcow2}" \
|
--output-bootdisk "${BOOTDISK:=/home/arch/OSX-KVM/OpenCore-Catalina/OpenCore.qcow2}" \
|
||||||
|| exit 1 ; } \
|
|| exit 1 ; } \
|
||||||
; { [[ "${DISPLAY}" = ':99' ]] || [[ "${HEADLESS}" == true ]] ; } && { \
|
; { [[ "${DISPLAY}" = ':99' ]] || [[ "${HEADLESS}" == true ]] ; } && { \
|
||||||
nohup Xvfb :99 -screen 0 1920x1080x16 \
|
nohup Xvfb :99 -screen 0 1920x1080x16 \
|
||||||
@ -238,13 +240,13 @@ CMD echo "${BOILERPLATE}" \
|
|||||||
; } \
|
; } \
|
||||||
; /bin/bash -c ./Launch.sh \
|
; /bin/bash -c ./Launch.sh \
|
||||||
& echo "Booting Docker-OSX in the background. Please wait..." \
|
& echo "Booting Docker-OSX in the background. Please wait..." \
|
||||||
; until [[ "$(sshpass -palpine ssh-copy-id -f -i ~/.ssh/id_docker_osx.pub -p 10022 user@127.0.0.1)" ]]; do \
|
; until [[ "$(sshpass -p${PASSWORD:=alpine} ssh-copy-id -f -i ~/.ssh/id_docker_osx.pub -p 10022 ${USERNAME:=user}@127.0.0.1)" ]]; do \
|
||||||
echo "Disk is being copied between layers. Repeating until able to copy SSH key into OSX..." \
|
echo "Disk is being copied between layers. Repeating until able to copy SSH key into OSX..." \
|
||||||
; sleep 1 \
|
; sleep 1 \
|
||||||
; done \
|
; done \
|
||||||
; grep id_docker_osx ~/.ssh/config || { \
|
; grep id_docker_osx ~/.ssh/config || { \
|
||||||
tee -a ~/.ssh/config <<< 'Host 127.0.0.1' \
|
tee -a ~/.ssh/config <<< 'Host 127.0.0.1' \
|
||||||
; tee -a ~/.ssh/config <<< ' User user' \
|
; tee -a ~/.ssh/config <<< " User ${USERNAME:=user}" \
|
||||||
; tee -a ~/.ssh/config <<< ' Port 10022' \
|
; tee -a ~/.ssh/config <<< ' Port 10022' \
|
||||||
; tee -a ~/.ssh/config <<< ' IdentityFile ~/.ssh/id_docker_osx' \
|
; tee -a ~/.ssh/config <<< ' IdentityFile ~/.ssh/id_docker_osx' \
|
||||||
; tee -a ~/.ssh/config <<< ' StrictHostKeyChecking no' \
|
; tee -a ~/.ssh/config <<< ' StrictHostKeyChecking no' \
|
||||||
@ -253,7 +255,7 @@ CMD echo "${BOILERPLATE}" \
|
|||||||
&& echo 'Default username: user' \
|
&& echo 'Default username: user' \
|
||||||
&& echo 'Default password: alpine' \
|
&& echo 'Default password: alpine' \
|
||||||
&& echo 'Change it immediately using the command: passwd' \
|
&& echo 'Change it immediately using the command: passwd' \
|
||||||
&& ssh -i ~/.ssh/id_docker_osx user@127.0.0.1 -p 10022 "${OSX_COMMANDS}"
|
&& ssh -i ~/.ssh/id_docker_osx ${USERNAME:=user}@127.0.0.1 -p 10022 "${OSX_COMMANDS}"
|
||||||
|
|
||||||
# username: user
|
# username: user
|
||||||
# password: alpine
|
# password: alpine
|
||||||
|
223
Dockerfile.monterey
Normal file
223
Dockerfile.monterey
Normal file
@ -0,0 +1,223 @@
|
|||||||
|
#!/usr/bin/docker
|
||||||
|
# ____ __ ____ ______ __
|
||||||
|
# / __ \____ _____/ /_____ _____/ __ \/ ___/ |/ /
|
||||||
|
# / / / / __ \/ ___/ //_/ _ \/ ___/ / / /\__ \| /
|
||||||
|
# / /_/ / /_/ / /__/ ,< / __/ / / /_/ /___/ / |
|
||||||
|
# /_____/\____/\___/_/|_|\___/_/ \____//____/_/|_| [MONTEREY]
|
||||||
|
#
|
||||||
|
# Title: Docker-OSX (Mac on Docker)
|
||||||
|
# Author: Sick.Codes https://twitter.com/sickcodes
|
||||||
|
# Version: 6.0
|
||||||
|
# License: GPLv3+
|
||||||
|
# Repository: https://github.com/sickcodes/Docker-OSX
|
||||||
|
# Website: https://sick.codes
|
||||||
|
#
|
||||||
|
# Notes: Uses a self-hosted BaseSystem.img from a USB installer.
|
||||||
|
# If you want to DIY, use https://github.com/corpnewt/gibMacOS
|
||||||
|
# Set seed as developer, and install the Install Assistant on Big Sur
|
||||||
|
# Burn to a USB, and pull out BaseSystem.img
|
||||||
|
# Or download from https://images.sick.codes/BaseSystem_Monterey.dmg
|
||||||
|
#
|
||||||
|
|
||||||
|
FROM sickcodes/docker-osx
|
||||||
|
|
||||||
|
MAINTAINER 'https://twitter.com/sickcodes' <https://sick.codes>
|
||||||
|
|
||||||
|
SHELL ["/bin/bash", "-c"]
|
||||||
|
|
||||||
|
# change disk size here or add during build, e.g. --build-arg VERSION=10.14.5 --build-arg SIZE=50G
|
||||||
|
ARG SIZE=200G
|
||||||
|
ARG BASE_SYSTEM='https://images.sick.codes/BaseSystem_Monterey.dmg'
|
||||||
|
|
||||||
|
WORKDIR /home/arch/OSX-KVM
|
||||||
|
|
||||||
|
RUN wget -O BaseSystem.dmg "${BASE_SYSTEM}" \
|
||||||
|
&& qemu-img convert BaseSystem.dmg -O qcow2 -p -c BaseSystem.img \
|
||||||
|
&& rm -f BaseSystem.dmg
|
||||||
|
|
||||||
|
RUN qemu-img create -f qcow2 /home/arch/OSX-KVM/mac_hdd_ng.img "${SIZE}"
|
||||||
|
|
||||||
|
WORKDIR /home/arch/OSX-KVM
|
||||||
|
|
||||||
|
ARG LINUX=true
|
||||||
|
|
||||||
|
# required to use libguestfs inside a docker container, to create bootdisks for docker-osx on-the-fly
|
||||||
|
RUN if [[ "${LINUX}" == true ]]; then \
|
||||||
|
sudo pacman -Syu linux libguestfs --noconfirm \
|
||||||
|
; fi
|
||||||
|
|
||||||
|
# optional --build-arg to change branches for testing
|
||||||
|
ARG BRANCH=master
|
||||||
|
ARG REPO='https://github.com/sickcodes/Docker-OSX.git'
|
||||||
|
# RUN git clone --recurse-submodules --depth 1 --branch "${BRANCH}" "${REPO}"
|
||||||
|
RUN rm -rf ./Docker-OSX \
|
||||||
|
&& git clone --recurse-submodules --depth 1 --branch "${BRANCH}" "${REPO}"
|
||||||
|
|
||||||
|
RUN touch Launch.sh \
|
||||||
|
&& chmod +x ./Launch.sh \
|
||||||
|
&& tee -a Launch.sh <<< '#!/bin/bash' \
|
||||||
|
&& tee -a Launch.sh <<< 'set -eux' \
|
||||||
|
&& tee -a Launch.sh <<< 'sudo chown $(id -u):$(id -g) /dev/kvm 2>/dev/null || true' \
|
||||||
|
&& tee -a Launch.sh <<< 'sudo chown -R $(id -u):$(id -g) /dev/snd 2>/dev/null || true' \
|
||||||
|
&& tee -a Launch.sh <<< '[[ "${RAM}" = max ]] && export RAM="$(("$(head -n1 /proc/meminfo | tr -dc "[:digit:]") / 1000000"))"' \
|
||||||
|
&& tee -a Launch.sh <<< '[[ "${RAM}" = half ]] && export RAM="$(("$(head -n1 /proc/meminfo | tr -dc "[:digit:]") / 2000000"))"' \
|
||||||
|
&& tee -a Launch.sh <<< 'sudo chown -R $(id -u):$(id -g) /dev/snd 2>/dev/null || true' \
|
||||||
|
&& tee -a Launch.sh <<< 'exec qemu-system-x86_64 -m ${RAM:-2}000 \' \
|
||||||
|
&& tee -a Launch.sh <<< '-cpu ${CPU:-Penryn},${CPUID_FLAGS:-vendor=GenuineIntel,+invtsc,vmware-cpuid-freq=on,+ssse3,+sse4.2,+popcnt,+avx,+aes,+xsave,+xsaveopt,check,}${BOOT_ARGS} \' \
|
||||||
|
&& tee -a Launch.sh <<< '-machine q35,${KVM-"accel=kvm:tcg"} \' \
|
||||||
|
&& tee -a Launch.sh <<< '-smp ${CPU_STRING:-${SMP:-4},cores=${CORES:-4}} \' \
|
||||||
|
&& tee -a Launch.sh <<< '-usb -device usb-kbd -device usb-tablet \' \
|
||||||
|
&& tee -a Launch.sh <<< '-device isa-applesmc,osk=ourhardworkbythesewordsguardedpleasedontsteal\(c\)AppleComputerInc \' \
|
||||||
|
&& tee -a Launch.sh <<< '-drive if=pflash,format=raw,readonly=on,file=/home/arch/OSX-KVM/OVMF_CODE.fd \' \
|
||||||
|
&& tee -a Launch.sh <<< '-drive if=pflash,format=raw,file=/home/arch/OSX-KVM/OVMF_VARS-1024x768.fd \' \
|
||||||
|
&& tee -a Launch.sh <<< '-smbios type=2 \' \
|
||||||
|
&& tee -a Launch.sh <<< '-audiodev ${AUDIO_DRIVER:-alsa},id=hda -device ich9-intel-hda -device hda-duplex,audiodev=hda \' \
|
||||||
|
&& tee -a Launch.sh <<< '-device ich9-ahci,id=sata \' \
|
||||||
|
&& tee -a Launch.sh <<< '-drive id=OpenCoreBoot,if=none,snapshot=on,format=qcow2,file=${BOOTDISK:-/home/arch/OSX-KVM/OpenCore-Catalina/OpenCore.qcow2} \' \
|
||||||
|
&& tee -a Launch.sh <<< '-device ide-hd,bus=sata.2,drive=OpenCoreBoot \' \
|
||||||
|
&& tee -a Launch.sh <<< '-device ide-hd,bus=sata.3,drive=InstallMedia \' \
|
||||||
|
&& tee -a Launch.sh <<< '-drive id=InstallMedia,if=none,file=/home/arch/OSX-KVM/BaseSystem.img,format=qcow2 \' \
|
||||||
|
&& tee -a Launch.sh <<< '-drive id=MacHDD,if=none,file=${IMAGE_PATH:-/home/arch/OSX-KVM/mac_hdd_ng.img},format=${IMAGE_FORMAT:-qcow2} \' \
|
||||||
|
&& tee -a Launch.sh <<< '-device ide-hd,bus=sata.4,drive=MacHDD \' \
|
||||||
|
&& tee -a Launch.sh <<< '-netdev user,id=net0,hostfwd=tcp::${INTERNAL_SSH_PORT:-10022}-:22,hostfwd=tcp::${SCREEN_SHARE_PORT:-5900}-:5900,${ADDITIONAL_PORTS} \' \
|
||||||
|
&& tee -a Launch.sh <<< '-device ${NETWORKING:-vmxnet3},netdev=net0,id=net0,mac=${MAC_ADDRESS:-52:54:00:09:49:17} \' \
|
||||||
|
&& tee -a Launch.sh <<< '-monitor stdio \' \
|
||||||
|
&& tee -a Launch.sh <<< '-boot menu=on \' \
|
||||||
|
&& tee -a Launch.sh <<< '-vga vmware \' \
|
||||||
|
&& tee -a Launch.sh <<< '${EXTRA:-}'
|
||||||
|
|
||||||
|
# docker exec containerid mv ./Launch-nopicker.sh ./Launch.sh
|
||||||
|
# This is now a legacy command.
|
||||||
|
# You can use -e BOOTDISK=/bootdisk with -v ./bootdisk.img:/bootdisk
|
||||||
|
RUN grep -v InstallMedia ./Launch.sh > ./Launch-nopicker.sh \
|
||||||
|
&& chmod +x ./Launch-nopicker.sh \
|
||||||
|
&& sed -i -e s/OpenCore\.qcow2/OpenCore\-nopicker\.qcow2/ ./Launch-nopicker.sh
|
||||||
|
|
||||||
|
USER arch
|
||||||
|
|
||||||
|
ENV USER arch
|
||||||
|
|
||||||
|
# 5.13 problem
|
||||||
|
ENV SUPERMIN_KERNEL=/boot/vmlinuz-linux
|
||||||
|
|
||||||
|
ENV SUPERMIN_MODULES=/lib/modules/5.12.14-arch1-1
|
||||||
|
|
||||||
|
ENV SUPERMIN_KERNEL_VERSION=5.12.14-arch1-1
|
||||||
|
|
||||||
|
RUN sudo pacman -Rns linux --noconfirm \
|
||||||
|
; sudo pacman -Syy \
|
||||||
|
; sudo pacman -S mkinitcpio --noconfirm \
|
||||||
|
; sudo pacman -U https://archive.archlinux.org/packages/l/linux/linux-5.12.14.arch1-1-x86_64.pkg.tar.zst --noconfirm \
|
||||||
|
; sudo rm -rf /var/tmp/.guestfs-* \
|
||||||
|
; libguestfs-test-tool
|
||||||
|
|
||||||
|
#### SPECIAL RUNTIME ARGUMENTS BELOW
|
||||||
|
|
||||||
|
# env -e ADDITIONAL_PORTS with a comma
|
||||||
|
# for example, -e ADDITIONAL_PORTS=hostfwd=tcp::23-:23,
|
||||||
|
ENV ADDITIONAL_PORTS=
|
||||||
|
|
||||||
|
# add additional QEMU boot arguments
|
||||||
|
ENV BOOT_ARGS=
|
||||||
|
|
||||||
|
ENV BOOTDISK=
|
||||||
|
|
||||||
|
# edit the CPU that is being emulated
|
||||||
|
ENV CPU=Penryn
|
||||||
|
ENV CPUID_FLAGS='vendor=GenuineIntel,+invtsc,vmware-cpuid-freq=on,+ssse3,+sse4.2,+popcnt,+avx,+aes,+xsave,+xsaveopt,check,'
|
||||||
|
|
||||||
|
ENV DISPLAY=:0.0
|
||||||
|
|
||||||
|
# Deprecated
|
||||||
|
ENV ENV=/env
|
||||||
|
|
||||||
|
# Boolean for generating a bootdisk with new random serials.
|
||||||
|
ENV GENERATE_UNIQUE=false
|
||||||
|
|
||||||
|
# Boolean for generating a bootdisk with specific serials.
|
||||||
|
ENV GENERATE_SPECIFIC=false
|
||||||
|
|
||||||
|
ENV IMAGE_PATH=/home/arch/OSX-KVM/mac_hdd_ng.img
|
||||||
|
ENV IMAGE_FORMAT=qcow2
|
||||||
|
|
||||||
|
ENV KVM='accel=kvm:tcg'
|
||||||
|
|
||||||
|
ENV MASTER_PLIST_URL="https://raw.githubusercontent.com/sickcodes/osx-serial-generator/master/config-custom.plist"
|
||||||
|
|
||||||
|
# ENV NETWORKING=e1000-82545em
|
||||||
|
ENV NETWORKING=vmxnet3
|
||||||
|
|
||||||
|
# boolean for skipping the disk selection menu at in the boot process
|
||||||
|
ENV NOPICKER=false
|
||||||
|
|
||||||
|
# dynamic RAM options for runtime
|
||||||
|
ENV RAM=3
|
||||||
|
# ENV RAM=max
|
||||||
|
# ENV RAM=half
|
||||||
|
|
||||||
|
# The x and y coordinates for resolution.
|
||||||
|
# Must be used with either -e GENERATE_UNIQUE=true or -e GENERATE_SPECIFIC=true.
|
||||||
|
ENV WIDTH=1920
|
||||||
|
ENV HEIGHT=1080
|
||||||
|
|
||||||
|
# libguestfs verbose
|
||||||
|
ENV LIBGUESTFS_DEBUG=1
|
||||||
|
ENV LIBGUESTFS_TRACE=1
|
||||||
|
|
||||||
|
VOLUME ["/tmp/.X11-unix"]
|
||||||
|
|
||||||
|
# check if /image is a disk image or a directory. This allows you to optionally use -v disk.img:/image
|
||||||
|
# NOPICKER is used to skip the disk selection screen
|
||||||
|
# GENERATE_UNIQUE is used to generate serial numbers on boot.
|
||||||
|
# /env is a file that you can generate and save using -v source.sh:/env
|
||||||
|
# the env file is a file that you can carry to the next container which will supply the serials numbers.
|
||||||
|
# GENERATE_SPECIFIC is used to either accept the env serial numbers OR you can supply using:
|
||||||
|
# -e DEVICE_MODEL="iMacPro1,1" \
|
||||||
|
# -e SERIAL="C02TW0WAHX87" \
|
||||||
|
# -e BOARD_SERIAL="C027251024NJG36UE" \
|
||||||
|
# -e UUID="5CCB366D-9118-4C61-A00A-E5BAF3BED451" \
|
||||||
|
# -e MAC_ADDRESS="A8:5C:2C:9A:46:2F" \
|
||||||
|
|
||||||
|
# the output will be /bootdisk.
|
||||||
|
# /bootdisk is a useful persistent place to store the 15Mb serial number bootdisk.
|
||||||
|
|
||||||
|
# if you don't set any of the above:
|
||||||
|
# the default serial numbers are already contained in ./OpenCore-Catalina/OpenCore.qcow2
|
||||||
|
# And the default serial numbers
|
||||||
|
|
||||||
|
CMD 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 \
|
||||||
|
; [[ "${NOPICKER}" == true ]] && { \
|
||||||
|
sed -i '/^.*InstallMedia.*/d' Launch.sh \
|
||||||
|
&& export BOOTDISK="${BOOTDISK:=/home/arch/OSX-KVM/OpenCore-Catalina/OpenCore-nopicker.qcow2}" \
|
||||||
|
; } \
|
||||||
|
|| export BOOTDISK="${BOOTDISK:=/home/arch/OSX-KVM/OpenCore-Catalina/OpenCore.qcow2}" \
|
||||||
|
; [[ "${GENERATE_UNIQUE}" == true ]] && { \
|
||||||
|
./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-Catalina/OpenCore.qcow2}" \
|
||||||
|
--output-env "${ENV:=/env}" \
|
||||||
|
|| exit 1 ; } \
|
||||||
|
; [[ "${GENERATE_SPECIFIC}" == true ]] && { \
|
||||||
|
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-Catalina/OpenCore.qcow2}" \
|
||||||
|
|| exit 1 ; } \
|
||||||
|
; ./enable-ssh.sh && /bin/bash -c ./Launch.sh
|
||||||
|
|
||||||
|
# virt-manager mode: eta son
|
||||||
|
# CMD virsh define <(envsubst < Docker-OSX.xml) && virt-manager || virt-manager
|
||||||
|
# CMD virsh define <(envsubst < macOS-libvirt-Catalina.xml) && virt-manager || virt-manager
|
@ -7,7 +7,7 @@
|
|||||||
#
|
#
|
||||||
# Title: Docker-OSX (Mac on Docker)
|
# Title: Docker-OSX (Mac on Docker)
|
||||||
# Author: Sick.Codes https://twitter.com/sickcodes
|
# Author: Sick.Codes https://twitter.com/sickcodes
|
||||||
# Version: 4.4
|
# Version: 6.0
|
||||||
# License: GPLv3+
|
# License: GPLv3+
|
||||||
# Repository: https://github.com/sickcodes/Docker-OSX
|
# Repository: https://github.com/sickcodes/Docker-OSX
|
||||||
# Website: https://sick.codes
|
# Website: https://sick.codes
|
||||||
@ -46,21 +46,16 @@ ARG RANKMIRRORS
|
|||||||
ARG MIRROR_COUNTRY=US
|
ARG MIRROR_COUNTRY=US
|
||||||
ARG MIRROR_COUNT=10
|
ARG MIRROR_COUNT=10
|
||||||
RUN if [[ "${RANKMIRRORS}" ]]; then { pacman -Sy wget --noconfirm || pacman -Syu wget --noconfirm ; } \
|
RUN if [[ "${RANKMIRRORS}" ]]; then { pacman -Sy wget --noconfirm || pacman -Syu wget --noconfirm ; } \
|
||||||
; wget -O ./rankmirrors "https://raw.githubusercontent.com/sickcodes/Docker-OSX/master/rankmirrors" \
|
; wget -O ./rankmirrors "https://raw.githubusercontent.com/sickcodes/Docker-OSX/master/rankmirrors" \
|
||||||
; wget -O- "https://www.archlinux.org/mirrorlist/?country=${MIRROR_COUNTRY:-US}&protocol=https&use_mirror_status=on" \
|
; wget -O- "https://www.archlinux.org/mirrorlist/?country=${MIRROR_COUNTRY:-US}&protocol=https&use_mirror_status=on" \
|
||||||
| sed -e 's/^#Server/Server/' -e '/^#/d' \
|
| sed -e 's/^#Server/Server/' -e '/^#/d' \
|
||||||
| head -n "$((${MIRROR_COUNT:-10}+1))" \
|
| head -n "$((${MIRROR_COUNT:-10}+1))" \
|
||||||
| bash ./rankmirrors --verbose --max-time 5 - > /etc/pacman.d/mirrorlist \
|
| bash ./rankmirrors --verbose --max-time 5 - > /etc/pacman.d/mirrorlist \
|
||||||
&& tee -a /etc/pacman.d/mirrorlist <<< 'Server = http://mirrors.evowise.com/archlinux/$repo/os/$arch' \
|
&& tee -a /etc/pacman.d/mirrorlist <<< 'Server = http://mirrors.evowise.com/archlinux/$repo/os/$arch' \
|
||||||
&& tee -a /etc/pacman.d/mirrorlist <<< 'Server = http://mirror.rackspace.com/archlinux/$repo/os/$arch' \
|
&& tee -a /etc/pacman.d/mirrorlist <<< 'Server = http://mirror.rackspace.com/archlinux/$repo/os/$arch' \
|
||||||
&& tee -a /etc/pacman.d/mirrorlist <<< 'Server = https://mirror.rackspace.com/archlinux/$repo/os/$arch' \
|
&& tee -a /etc/pacman.d/mirrorlist <<< 'Server = https://mirror.rackspace.com/archlinux/$repo/os/$arch' \
|
||||||
&& cat /etc/pacman.d/mirrorlist ; fi
|
&& cat /etc/pacman.d/mirrorlist \
|
||||||
|
; fi
|
||||||
# TEMP-FIX for pacman issue
|
|
||||||
RUN patched_glibc=glibc-linux4-2.33-4-x86_64.pkg.tar.zst \
|
|
||||||
&& curl -LO "https://raw.githubusercontent.com/sickcodes/Docker-OSX/master/${patched_glibc}" \
|
|
||||||
&& bsdtar -C / -xvf "${patched_glibc}" || echo "Everything is fine."
|
|
||||||
# TEMP-FIX for pacman issue
|
|
||||||
|
|
||||||
# For taking screenshots of the Xfvb screen, useful during development.
|
# For taking screenshots of the Xfvb screen, useful during development.
|
||||||
ARG SCROT
|
ARG SCROT
|
||||||
@ -82,21 +77,24 @@ RUN pacman -Syu xorg-server-xvfb wget xterm xorg-xhost xorg-xrandr sshpass --noc
|
|||||||
; fi \
|
; fi \
|
||||||
; yes | pacman -Scc
|
; yes | pacman -Scc
|
||||||
|
|
||||||
# TEMP-FIX for pacman issue
|
|
||||||
RUN patched_glibc=glibc-linux4-2.33-4-x86_64.pkg.tar.zst \
|
|
||||||
&& curl -LO "https://raw.githubusercontent.com/sickcodes/Docker-OSX/master/${patched_glibc}" \
|
|
||||||
&& bsdtar -C / -xvf "${patched_glibc}" || echo "Everything is fine."
|
|
||||||
# TEMP-FIX for pacman issue
|
|
||||||
|
|
||||||
# TEMP-FIX for file 5.40 libguestfs issue
|
|
||||||
RUN yes | sudo pacman -U https://archive.archlinux.org/packages/f/file/file-5.39-1-x86_64.pkg.tar.zst \
|
|
||||||
&& patched_glibc=glibc-linux4-2.33-4-x86_64.pkg.tar.zst \
|
|
||||||
&& curl -LO "https://raw.githubusercontent.com/sickcodes/Docker-OSX/master/${patched_glibc}" \
|
|
||||||
&& bsdtar -C / -xvf "${patched_glibc}" || echo "Everything is fine."
|
|
||||||
# TEMP-FIX for file 5.40 libguestfs issue
|
|
||||||
|
|
||||||
USER arch
|
USER arch
|
||||||
|
|
||||||
|
ENV USER arch
|
||||||
|
|
||||||
|
# 5.13 problem
|
||||||
|
ENV SUPERMIN_KERNEL=/boot/vmlinuz-linux
|
||||||
|
|
||||||
|
ENV SUPERMIN_MODULES=/lib/modules/5.12.14-arch1-1
|
||||||
|
|
||||||
|
ENV SUPERMIN_KERNEL_VERSION=5.12.14-arch1-1
|
||||||
|
|
||||||
|
RUN sudo pacman -Rns linux --noconfirm \
|
||||||
|
; sudo pacman -Syy \
|
||||||
|
; sudo pacman -S mkinitcpio --noconfirm \
|
||||||
|
; sudo pacman -U https://archive.archlinux.org/packages/l/linux/linux-5.12.14.arch1-1-x86_64.pkg.tar.zst --noconfirm \
|
||||||
|
; sudo rm -rf /var/tmp/.guestfs-* \
|
||||||
|
; libguestfs-test-tool
|
||||||
|
|
||||||
WORKDIR /home/arch/OSX-KVM
|
WORKDIR /home/arch/OSX-KVM
|
||||||
|
|
||||||
RUN mkdir -p ~/.ssh \
|
RUN mkdir -p ~/.ssh \
|
||||||
|
236
Dockerfile.naked-auto
Normal file
236
Dockerfile.naked-auto
Normal file
@ -0,0 +1,236 @@
|
|||||||
|
#!/usr/bin/docker
|
||||||
|
# ____ __ ____ ______ __
|
||||||
|
# / __ \____ _____/ /_____ _____/ __ \/ ___/ |/ /
|
||||||
|
# / / / / __ \/ ___/ //_/ _ \/ ___/ / / /\__ \| /
|
||||||
|
# / /_/ / /_/ / /__/ ,< / __/ / / /_/ /___/ / |
|
||||||
|
# /_____/\____/\___/_/|_|\___/_/ \____//____/_/|_| :NAKED-AUTO
|
||||||
|
#
|
||||||
|
# Title: Docker-OSX (Mac on Docker)
|
||||||
|
# Author: Sick.Codes https://twitter.com/sickcodes
|
||||||
|
# Version: 6.0
|
||||||
|
# License: GPLv3+
|
||||||
|
# Repository: https://github.com/sickcodes/Docker-OSX
|
||||||
|
# Website: https://sick.codes
|
||||||
|
#
|
||||||
|
# This Dockerfile needs you to supply a pre-installed installation of Docker-OSX!
|
||||||
|
#
|
||||||
|
# Visit https://github.com/sickcodes/Docker-OSX for info
|
||||||
|
|
||||||
|
FROM sickcodes/docker-osx:latest
|
||||||
|
|
||||||
|
MAINTAINER 'https://twitter.com/sickcodes' <https://sick.codes>
|
||||||
|
|
||||||
|
USER root
|
||||||
|
|
||||||
|
WORKDIR /root
|
||||||
|
|
||||||
|
RUN rm -f /home/arch/OSX-KVM/mac_hdd_ng.img
|
||||||
|
|
||||||
|
# For taking screenshots of the Xfvb screen, useful during development.
|
||||||
|
ARG SCROT
|
||||||
|
|
||||||
|
# OPTIONAL: Arch Linux server mirrors for super fast builds
|
||||||
|
# set RANKMIRRORS to any value other that nothing, e.g. -e RANKMIRRORS=true
|
||||||
|
ARG RANKMIRRORS
|
||||||
|
ARG MIRROR_COUNTRY=US
|
||||||
|
ARG MIRROR_COUNT=10
|
||||||
|
|
||||||
|
RUN if [[ "${RANKMIRRORS}" ]]; then \
|
||||||
|
{ pacman -Sy wget --noconfirm || pacman -Syu wget --noconfirm ; } \
|
||||||
|
; wget -O ./rankmirrors "https://raw.githubusercontent.com/sickcodes/Docker-OSX/master/rankmirrors" \
|
||||||
|
; wget -O- "https://www.archlinux.org/mirrorlist/?country=${MIRROR_COUNTRY:-US}&protocol=https&use_mirror_status=on" \
|
||||||
|
| sed -e 's/^#Server/Server/' -e '/^#/d' \
|
||||||
|
| head -n "$((${MIRROR_COUNT:-10}+1))" \
|
||||||
|
| bash ./rankmirrors --verbose --max-time 5 - > /etc/pacman.d/mirrorlist \
|
||||||
|
&& tee -a /etc/pacman.d/mirrorlist <<< 'Server = http://mirrors.evowise.com/archlinux/$repo/os/$arch' \
|
||||||
|
&& tee -a /etc/pacman.d/mirrorlist <<< 'Server = http://mirror.rackspace.com/archlinux/$repo/os/$arch' \
|
||||||
|
&& tee -a /etc/pacman.d/mirrorlist <<< 'Server = https://mirror.rackspace.com/archlinux/$repo/os/$arch' \
|
||||||
|
&& cat /etc/pacman.d/mirrorlist \
|
||||||
|
; fi \
|
||||||
|
; yes | pacman -Scc
|
||||||
|
|
||||||
|
# For taking screenshots of the Xfvb screen, useful during development.
|
||||||
|
ARG SCROT
|
||||||
|
|
||||||
|
RUN pacman -Syu xorg-server-xvfb wget xterm xorg-xhost xorg-xrandr sshpass --noconfirm \
|
||||||
|
&& if [[ "${SCROT}" ]]; then \
|
||||||
|
pacman -Syu scrot base-devel --noconfirm \
|
||||||
|
&& git clone --recurse-submodules --depth 1 https://github.com/stolk/imcat.git \
|
||||||
|
&& cd imcat \
|
||||||
|
&& make \
|
||||||
|
&& sudo cp imcat /usr/bin/imcat \
|
||||||
|
&& touch /usr/bin/scrotcat \
|
||||||
|
&& tee -a /usr/bin/scrotcat <<< '/usr/bin/imcat <(scrot -o /dev/stdout)' \
|
||||||
|
&& chmod +x /usr/bin/scrotcat \
|
||||||
|
; else \
|
||||||
|
touch /usr/bin/scrotcat \
|
||||||
|
&& echo echo >> /usr/bin/scrotcat \
|
||||||
|
&& chmod +x /usr/bin/scrotcat \
|
||||||
|
; fi \
|
||||||
|
; yes | pacman -Scc
|
||||||
|
|
||||||
|
USER arch
|
||||||
|
|
||||||
|
ENV USER arch
|
||||||
|
|
||||||
|
# 5.13 problem
|
||||||
|
ENV SUPERMIN_KERNEL=/boot/vmlinuz-linux
|
||||||
|
|
||||||
|
ENV SUPERMIN_MODULES=/lib/modules/5.12.14-arch1-1
|
||||||
|
|
||||||
|
ENV SUPERMIN_KERNEL_VERSION=5.12.14-arch1-1
|
||||||
|
|
||||||
|
RUN sudo pacman -Rns linux --noconfirm \
|
||||||
|
; sudo pacman -Syy \
|
||||||
|
; sudo pacman -S mkinitcpio --noconfirm \
|
||||||
|
; sudo pacman -U https://archive.archlinux.org/packages/l/linux/linux-5.12.14.arch1-1-x86_64.pkg.tar.zst --noconfirm \
|
||||||
|
; sudo rm -rf /var/tmp/.guestfs-* \
|
||||||
|
; libguestfs-test-tool
|
||||||
|
|
||||||
|
WORKDIR /home/arch/OSX-KVM
|
||||||
|
|
||||||
|
RUN mkdir -p ~/.ssh \
|
||||||
|
&& touch ~/.ssh/authorized_keys \
|
||||||
|
&& touch ~/.ssh/config \
|
||||||
|
&& chmod 700 ~/.ssh \
|
||||||
|
&& chmod 600 ~/.ssh/config \
|
||||||
|
&& chmod 600 ~/.ssh/authorized_keys \
|
||||||
|
&& tee -a ~/.ssh/config <<< 'Host *' \
|
||||||
|
&& tee -a ~/.ssh/config <<< ' StrictHostKeyChecking no' \
|
||||||
|
&& tee -a ~/.ssh/config <<< ' UserKnownHostsFile=/dev/null'
|
||||||
|
|
||||||
|
ARG COMPLETE=
|
||||||
|
|
||||||
|
# use the COMPLETE arg, for a complete image, ready to boot.
|
||||||
|
# otherwise use your own image: -v "$PWD/disk.img":/image
|
||||||
|
ARG WGET_OPTIONS=
|
||||||
|
# ARG WGET_OPTIONS='--no-verbose'
|
||||||
|
|
||||||
|
# Feel free to take a copy of this image and then host it internally
|
||||||
|
ARG IMAGE_URL=
|
||||||
|
# ARG IMAGE_URL='https://images.sick.codes/mac_hdd_ng_auto_big_sur.img'
|
||||||
|
|
||||||
|
RUN if [[ "${COMPLETE}" ]]; then \
|
||||||
|
echo "Downloading your image... This step might take a while... Press Ctrl+C if you want to abort." \
|
||||||
|
; rm -f /home/arch/OSX-KVM/mac_hdd_ng.img \
|
||||||
|
&& wget ${WGET_OPTIONS} -O /home/arch/OSX-KVM/mac_hdd_ng.img "${IMAGE_URL}" \
|
||||||
|
; fi
|
||||||
|
|
||||||
|
#### SPECIAL RUNTIME ARGUMENTS BELOW
|
||||||
|
|
||||||
|
ENV ADDITIONAL_PORTS=
|
||||||
|
|
||||||
|
# add additional QEMU boot arguments
|
||||||
|
ENV BOOT_ARGS=
|
||||||
|
|
||||||
|
ENV BOOTDISK=
|
||||||
|
|
||||||
|
# edit the CPU that is beign emulated
|
||||||
|
ENV CPU=Penryn
|
||||||
|
|
||||||
|
ENV DISPLAY=:99
|
||||||
|
|
||||||
|
ENV HEADLESS=false
|
||||||
|
|
||||||
|
ENV ENV=/env
|
||||||
|
|
||||||
|
# Boolean for generating a bootdisk with new random serials.
|
||||||
|
ENV GENERATE_UNIQUE=false
|
||||||
|
|
||||||
|
# Boolean for generating a bootdisk with specific serials.
|
||||||
|
ENV GENERATE_SPECIFIC=false
|
||||||
|
|
||||||
|
ENV IMAGE_PATH=/image
|
||||||
|
ENV IMAGE_FORMAT=qcow2
|
||||||
|
|
||||||
|
ENV KVM='accel=kvm:tcg'
|
||||||
|
|
||||||
|
# ENV MASTER_PLIST_URL="https://raw.githubusercontent.com/sickcodes/osx-serial-generator/master/config-custom.plist"
|
||||||
|
|
||||||
|
# ENV NETWORKING=e1000-82545em
|
||||||
|
ENV NETWORKING=vmxnet3
|
||||||
|
|
||||||
|
ENV NOPICKER=true
|
||||||
|
|
||||||
|
# set the username and password for automatically logging in
|
||||||
|
ENV USERNAME=user
|
||||||
|
ENV PASSWORD=alpine
|
||||||
|
|
||||||
|
# dynamic RAM options for runtime
|
||||||
|
ENV RAM=3
|
||||||
|
# ENV RAM=max
|
||||||
|
# ENV RAM=half
|
||||||
|
|
||||||
|
# The x and y coordinates for resolution.
|
||||||
|
# Must be used with either -e GENERATE_UNIQUE=true or -e GENERATE_SPECIFIC=true.
|
||||||
|
ENV WIDTH=1920
|
||||||
|
ENV HEIGHT=1080
|
||||||
|
|
||||||
|
# libguestfs verbose
|
||||||
|
ENV LIBGUESTFS_DEBUG=1
|
||||||
|
ENV LIBGUESTFS_TRACE=1
|
||||||
|
|
||||||
|
ENV TERMS_OF_USE=i_agree
|
||||||
|
|
||||||
|
ENV BOILERPLATE="By using this Dockerfile, you hereby agree that you are a security reseacher or developer and agree to use this Dockerfile to make the world a safer place. Examples include: making your apps safer, finding your mobile phone, compiling security products, etc. You understand that Docker-OSX is an Open Source project, which is released to the public under the GNU Pulic License version 3 and above. You acknowledge that the Open Source project is absolutely unaffiliated with any third party, in any form whatsoever. Any trademarks or intelectual property which happen to be mentioned anywhere in or around the project are owned by their respective owners. By using this Dockerfile, you agree to agree to the EULA of each piece of upstream or downstream software. The following code is released for the sole purpose of security research, under the GNU Public License version 3. If you are concerned about the licensing, please note that this project is not AGPL. A copy of the license is available online: https://github.com/sickcodes/Docker-OSX/blob/master/LICENSE. In order to use the following Dockerfile you must read and understand the terms. Once you have read the terms, use the -e TERMS_OF_USE=i_agree or -e TERMS_OF_USE=i_disagree"
|
||||||
|
|
||||||
|
CMD echo "${BOILERPLATE}" \
|
||||||
|
; [[ "${TERMS_OF_USE}" = i_agree ]] || exit 1 \
|
||||||
|
; echo "Disk is being copied between layers... Please wait a minute..." \
|
||||||
|
; 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 \
|
||||||
|
; [[ "${NOPICKER}" == true ]] && { \
|
||||||
|
sed -i '/^.*InstallMedia.*/d' Launch.sh \
|
||||||
|
&& export BOOTDISK="${BOOTDISK:=/home/arch/OSX-KVM/OpenCore-Catalina/OpenCore-nopicker.qcow2}" \
|
||||||
|
; } \
|
||||||
|
|| export BOOTDISK="${BOOTDISK:=/home/arch/OSX-KVM/OpenCore-Catalina/OpenCore.qcow2}" \
|
||||||
|
; [[ "${GENERATE_UNIQUE}" == true ]] && { \
|
||||||
|
./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-Catalina/OpenCore.qcow2}" \
|
||||||
|
--output-env "${ENV:=/env}" \
|
||||||
|
|| exit 1 ; } \
|
||||||
|
; [[ "${GENERATE_SPECIFIC}" == true ]] && { \
|
||||||
|
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-Catalina/OpenCore.qcow2}" \
|
||||||
|
|| exit 1 ; } \
|
||||||
|
; { [[ "${DISPLAY}" = ':99' ]] || [[ "${HEADLESS}" == true ]] ; } && { \
|
||||||
|
nohup Xvfb :99 -screen 0 1920x1080x16 \
|
||||||
|
& until [[ "$(xrandr --query 2>/dev/null)" ]]; do sleep 1 ; done \
|
||||||
|
; } \
|
||||||
|
; stat "${IMAGE_PATH}" \
|
||||||
|
; echo "Large image is being copied between layers, please wait a minute..." \
|
||||||
|
; ./enable-ssh.sh \
|
||||||
|
; [[ -e ~/.ssh/id_docker_osx ]] || { \
|
||||||
|
/usr/bin/ssh-keygen -t rsa -f ~/.ssh/id_docker_osx -q -N "" \
|
||||||
|
&& chmod 600 ~/.ssh/id_docker_osx \
|
||||||
|
; } \
|
||||||
|
; /bin/bash -c ./Launch.sh \
|
||||||
|
& echo "Booting Docker-OSX in the background. Please wait..." \
|
||||||
|
; until [[ "$(sshpass -p${PASSWORD:=alpine} ssh-copy-id -f -i ~/.ssh/id_docker_osx.pub -p 10022 ${USERNAME:=user}@127.0.0.1)" ]]; do \
|
||||||
|
echo "Disk is being copied between layers. Repeating until able to copy SSH key into OSX..." \
|
||||||
|
; sleep 1 \
|
||||||
|
; done \
|
||||||
|
; grep id_docker_osx ~/.ssh/config || { \
|
||||||
|
tee -a ~/.ssh/config <<< 'Host 127.0.0.1' \
|
||||||
|
; tee -a ~/.ssh/config <<< " User ${USERNAME:=user}" \
|
||||||
|
; tee -a ~/.ssh/config <<< ' Port 10022' \
|
||||||
|
; tee -a ~/.ssh/config <<< ' IdentityFile ~/.ssh/id_docker_osx' \
|
||||||
|
; tee -a ~/.ssh/config <<< ' StrictHostKeyChecking no' \
|
||||||
|
; tee -a ~/.ssh/config <<< ' UserKnownHostsFile=/dev/null' \
|
||||||
|
; } \
|
||||||
|
&& ssh -i ~/.ssh/id_docker_osx ${USERNAME:=user}@127.0.0.1 -p 10022 "${OSX_COMMANDS}"
|
477
README.md
477
README.md
@ -2,7 +2,21 @@
|
|||||||
|
|
||||||

|

|
||||||
|
|
||||||
Run Mac OS X in Docker with near-native performance! X11 Forwarding! iMessage security research!
|
Run Mac OS X in Docker with near-native performance! X11 Forwarding! iMessage security research! iPhone USB working! macOS in a Docker container!
|
||||||
|
|
||||||
|
# Docker-OSX now has a Discord server & Telegram!
|
||||||
|
|
||||||
|
The Discord is active on #docker-osx and anyone is welcome to come and ask questions, ideas, etc.
|
||||||
|
|
||||||
|
[](https://discord.gg/mx8pPw39Yg)
|
||||||
|
|
||||||
|
### Click to join the Discord server [https://discord.gg/mx8pPw39Yg](https://discord.gg/mx8pPw39Yg)
|
||||||
|
|
||||||
|
### Click to join the Telegram server [https://t.me/sickcodeschat](https://t.me/sickcodeschat)
|
||||||
|
|
||||||
|
Or reach out via Linkedin if it's private: [https://www.linkedin.com/in/sickcodes](https://www.linkedin.com/in/sickcodes)
|
||||||
|
|
||||||
|
Or via [https://sick.codes/contact/](https://sick.codes/contact/)
|
||||||
|
|
||||||
## Author
|
## Author
|
||||||
|
|
||||||
@ -26,6 +40,9 @@ If you like this project, consider contributing here or upstream!
|
|||||||
|
|
||||||
First time here? try [initial setup](#initial-setup), otherwise try the instructions below to use either Catalina or Big Sur.
|
First time here? try [initial setup](#initial-setup), otherwise try the instructions below to use either Catalina or Big Sur.
|
||||||
|
|
||||||
|
## Any questions, ideas, or just want to hang out?
|
||||||
|
# [https://discord.gg/mx8pPw39Yg](https://discord.gg/mx8pPw39Yg)
|
||||||
|
|
||||||
### Catalina [](https://hub.docker.com/r/sickcodes/docker-osx/tags?page=1&ordering=last_updated)
|
### Catalina [](https://hub.docker.com/r/sickcodes/docker-osx/tags?page=1&ordering=last_updated)
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
@ -35,6 +52,8 @@ docker run -it \
|
|||||||
-v /tmp/.X11-unix:/tmp/.X11-unix \
|
-v /tmp/.X11-unix:/tmp/.X11-unix \
|
||||||
-e "DISPLAY=${DISPLAY:-:0.0}" \
|
-e "DISPLAY=${DISPLAY:-:0.0}" \
|
||||||
sickcodes/docker-osx:latest
|
sickcodes/docker-osx:latest
|
||||||
|
|
||||||
|
# docker build -t docker-osx .
|
||||||
```
|
```
|
||||||
### Big Sur [](https://hub.docker.com/r/sickcodes/docker-osx/tags?page=1&ordering=last_updated)
|
### Big Sur [](https://hub.docker.com/r/sickcodes/docker-osx/tags?page=1&ordering=last_updated)
|
||||||
|
|
||||||
@ -44,40 +63,207 @@ docker run -it \
|
|||||||
-p 50922:10022 \
|
-p 50922:10022 \
|
||||||
-v /tmp/.X11-unix:/tmp/.X11-unix \
|
-v /tmp/.X11-unix:/tmp/.X11-unix \
|
||||||
-e "DISPLAY=${DISPLAY:-:0.0}" \
|
-e "DISPLAY=${DISPLAY:-:0.0}" \
|
||||||
-e GENERATE_UNIQUE=true \
|
|
||||||
-e MASTER_PLIST_URL=https://raw.githubusercontent.com/sickcodes/osx-serial-generator/master/config-custom.plist \
|
|
||||||
sickcodes/docker-osx:big-sur
|
sickcodes/docker-osx:big-sur
|
||||||
|
|
||||||
|
# docker build -t docker-osx -e VERSION='Big Sur' .
|
||||||
```
|
```
|
||||||
|
|
||||||
## Make container FASTER
|
### Monterey [](https://hub.docker.com/r/sickcodes/docker-osx/tags?page=1&ordering=last_updated)
|
||||||
|
|
||||||
|
```bash
|
||||||
|
|
||||||
|
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 MASTER_PLIST_URL='https://raw.githubusercontent.com/sickcodes/osx-serial-generator/master/config-custom.plist' \
|
||||||
|
sickcodes/docker-osx:monterey
|
||||||
|
|
||||||
|
# docker build -t docker-osx -f Dockerfile.monterey .
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Run Catalina Pre-Installed [](https://hub.docker.com/r/sickcodes/docker-osx/tags?page=1&ordering=last_updated)
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# 40GB disk space required: 20GB original image 20GB your container.
|
||||||
|
docker pull sickcodes/docker-osx:auto
|
||||||
|
|
||||||
|
# boot directly into a real OS X shell with a visual display [NOT HEADLESS]
|
||||||
|
docker run -it \
|
||||||
|
--device /dev/kvm \
|
||||||
|
-p 50922:10022 \
|
||||||
|
-v /tmp/.X11-unix:/tmp/.X11-unix \
|
||||||
|
-e "DISPLAY=${DISPLAY:-:0.0}" \
|
||||||
|
sickcodes/docker-osx:auto
|
||||||
|
|
||||||
|
# username is user
|
||||||
|
# passsword is alpine
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Download the image manually and use it in Docker
|
||||||
|
|
||||||
|
[](https://hub.docker.com/r/sickcodes/docker-osx/tags?page=1&ordering=last_updated)
|
||||||
|
|
||||||
|
|
||||||
|
This is a particularly good way for downloading the container, in case Docker's CDN (or your connection) happens to be slow.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
wget https://images2.sick.codes/mac_hdd_ng_auto.img
|
||||||
|
|
||||||
|
docker run -it \
|
||||||
|
--device /dev/kvm \
|
||||||
|
-p 50922:10022 \
|
||||||
|
-v "${PWD}/mac_hdd_ng_auto.img:/image" \
|
||||||
|
-v /tmp/.X11-unix:/tmp/.X11-unix \
|
||||||
|
-e "DISPLAY=${DISPLAY:-:0.0}" \
|
||||||
|
-e GENERATE_UNIQUE=true \
|
||||||
|
-e MASTER_PLIST_URL=https://raw.githubusercontent.com/sickcodes/Docker-OSX/master/custom/config-nopicker-custom.plist \
|
||||||
|
sickcodes/docker-osx:naked
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
#### Use your own image and manually and automatically log into a shell
|
||||||
|
|
||||||
|
[](https://hub.docker.com/r/sickcodes/docker-osx/tags?page=1&ordering=last_updated)
|
||||||
|
|
||||||
|
|
||||||
|
Enable SSH in network sharing inside the guest first. Change `-e "USERNAME=user"` and `-e "PASSWORD=password"` to your credentials. The container will add itself to `~/.ssh/authorized_keys`
|
||||||
|
|
||||||
|
Since you can't see the screen, use the PLIST with nopicker, for example:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
wget https://images2.sick.codes/mac_hdd_ng_auto.img
|
||||||
|
|
||||||
|
docker run -it \
|
||||||
|
--device /dev/kvm \
|
||||||
|
-p 50922:10022 \
|
||||||
|
-v "${PWD}/mac_hdd_ng_auto.img:/image" \
|
||||||
|
-v /tmp/.X11-unix:/tmp/.X11-unix \
|
||||||
|
-e "DISPLAY=${DISPLAY:-:0.0}" \
|
||||||
|
-e "USERNAME=user" \
|
||||||
|
-e "PASSWORD=alpine" \
|
||||||
|
-e GENERATE_UNIQUE=true \
|
||||||
|
-e MASTER_PLIST_URL=https://raw.githubusercontent.com/sickcodes/Docker-OSX/master/custom/config-nopicker-custom.plist \
|
||||||
|
sickcodes/docker-osx:naked-auto
|
||||||
|
```
|
||||||
|
|
||||||
|
# (VFIO) iPhone USB passthrough (VFIO)
|
||||||
|
|
||||||
|
If you have a laptop see the next usbfluxd section.
|
||||||
|
|
||||||
|
If you have a desktop PC, you can use [@Silfalion](https://github.com/Silfalion)'s instructions : [https://github.com/Silfalion/Iphone_docker_osx_passthrough](https://github.com/Silfalion/Iphone_docker_osx_passthrough)
|
||||||
|
|
||||||
|
# (USBFLUXD) iPhone USB -> Network style passthrough OSX-KVM Docker-OSX
|
||||||
|
|
||||||
|
This method WORKS on laptop, PC, anything!
|
||||||
|
|
||||||
|
Thank you [@nikias](https://github.com/nikias) for [usbfluxd](https://github.com/corellium/usbfluxd) via [https://github.com/corellium](https://github.com/corellium)!
|
||||||
|
|
||||||
|
**This is done inside Linux.**
|
||||||
|
|
||||||
|
Open 3 terminals on Linux
|
||||||
|
|
||||||
|
Connecting your device over USB on Linux allows you to expose `usbmuxd` on port `5000` using [https://github.com/corellium/usbfluxd](https://github.com/corellium/usbfluxd) to another system on the same network.
|
||||||
|
|
||||||
|
Ensure `usbmuxd`, `socat` and `usbfluxd` are installed.
|
||||||
|
|
||||||
|
`sudo pacman -S libusbmuxd usbmuxd avahi socat`
|
||||||
|
|
||||||
|
Available on the AUR: [https://aur.archlinux.org/packages/usbfluxd/](https://aur.archlinux.org/packages/usbfluxd/)
|
||||||
|
|
||||||
|
`yay usbfluxd`
|
||||||
|
|
||||||
|
Plug in your iPhone or iPad.
|
||||||
|
|
||||||
|
Terminal 1
|
||||||
|
```bash
|
||||||
|
sudo systemctl start usbmuxd
|
||||||
|
sudo avahi-daemon
|
||||||
|
```
|
||||||
|
|
||||||
|
Terminal 2:
|
||||||
|
```bash
|
||||||
|
# on host
|
||||||
|
sudo systemctl restart usbmuxd
|
||||||
|
sudo socat tcp-listen:5000,fork unix-connect:/var/run/usbmuxd
|
||||||
|
```
|
||||||
|
|
||||||
|
Terminal 3:
|
||||||
|
```bash
|
||||||
|
sudo usbfluxd -f -n
|
||||||
|
```
|
||||||
|
|
||||||
|
### Connect to a host running usbfluxd
|
||||||
|
|
||||||
|
**This is done inside macOS.**
|
||||||
|
|
||||||
|
Install homebrew.
|
||||||
|
|
||||||
|
`172.17.0.1` is usually the Docker bridge IP, which is your PC, but you can use any IP from `ip addr`...
|
||||||
|
|
||||||
|
macOS Terminal:
|
||||||
|
```zsh
|
||||||
|
# on the guest
|
||||||
|
brew install make automake autoconf libtool pkg-config gcc libimobiledevice usbmuxd
|
||||||
|
|
||||||
|
git clone https://github.com/corellium/usbfluxd.git
|
||||||
|
cd usbfluxd
|
||||||
|
|
||||||
|
./autogen.sh
|
||||||
|
make
|
||||||
|
sudo make install
|
||||||
|
```
|
||||||
|
|
||||||
|
Accept the USB over TCP connection, and appear as local:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# on the guest
|
||||||
|
sudo launchctl start usbmuxd
|
||||||
|
export PATH=/usr/local/sbin:${PATH}
|
||||||
|
sudo usbfluxd -f -r 172.17.0.1:5000
|
||||||
|
```
|
||||||
|
|
||||||
|
Close apps such as Xcode and reopen them and your device should appear!
|
||||||
|
|
||||||
|
*If you need to start again on Linux, wipe the current usbfluxd, usbmuxd, and socat:*
|
||||||
|
```bash
|
||||||
|
sudo killall usbfluxd
|
||||||
|
sudo systemctl restart usbmuxd
|
||||||
|
sudo killall socat
|
||||||
|
```
|
||||||
|
|
||||||
|
## Make container FASTER using [https://github.com/sickcodes/osx-optimizer](https://github.com/sickcodes/osx-optimizer)
|
||||||
|
|
||||||
SEE commands in [https://github.com/sickcodes/osx-optimizer](https://github.com/sickcodes/osx-optimizer)!
|
SEE commands in [https://github.com/sickcodes/osx-optimizer](https://github.com/sickcodes/osx-optimizer)!
|
||||||
|
|
||||||
- Skip the GUI login screen (at your own risk!)
|
- Skip the GUI login screen (at your own risk!)
|
||||||
- Disable spotlight indexing on macOS to heavily speed up Virual Instances.
|
- Disable spotlight indexing on macOS to heavily speed up Virtual Instances.
|
||||||
- Disable heavy login screen wallpaper
|
- Disable heavy login screen wallpaper
|
||||||
- Disable updates (at your own risk!)
|
- Disable updates (at your own risk!)
|
||||||
|
|
||||||
## Important notices:
|
## Important notices:
|
||||||
|
|
||||||
**2021-05-04:** Big Sur requires an updated OpenCore.qcow2 image, simply add:
|
**2021-09-09** - Bootdisks at runtime required for Monterey!
|
||||||
|
|
||||||
|
Pick one of these:
|
||||||
```
|
```
|
||||||
# this will not be required after OSX-KVM integrates the changes. No effect if you were already using this method.
|
-e MASTER_PLIST_URL='https://raw.githubusercontent.com/sickcodes/osx-serial-generator/master/config-custom.plist' \
|
||||||
-e GENERATE_UNIQUE=true \
|
|
||||||
-e MASTER_PLIST_URL=https://raw.githubusercontent.com/sickcodes/osx-serial-generator/master/config-custom.plist \
|
-e MASTER_PLIST_URL='https://raw.githubusercontent.com/sickcodes/osx-serial-generator/master/config-nopicker-custom.plist' \
|
||||||
```
|
```
|
||||||
|
|
||||||
**2021-05-08:** QEMU 6 VNC changes:
|
|
||||||
|
|
||||||
For Docker-OSX users who are using [VNC over QEMU using](#building-a-headless-container-which-allows-insecure-vnc-on-localhost-for-local-use-only) `-e EXTRA=...`
|
|
||||||
|
|
||||||
- `password` is now `password=on`
|
|
||||||
- `change vnc password` now need a username at the end, `change vnc password someuser`
|
|
||||||
|
|
||||||
## Technical details
|
## Technical details
|
||||||
|
|
||||||
There currently four images, each with different use cases (explained [below](#container-images)):
|
There currently five images, each with different use cases (explained [below](#container-images)):
|
||||||
|
|
||||||
|
- Catalina
|
||||||
|
- Big Sur
|
||||||
|
- Auto (pre-made Catalina)
|
||||||
|
- Naked (use your own .img)
|
||||||
|
- Naked-Auto (user your own .img and SSH in)
|
||||||
|
|
||||||
Catalina make your own image:
|
Catalina make your own image:
|
||||||
|
|
||||||
@ -87,6 +273,10 @@ Big-Sur make your own image:
|
|||||||
|
|
||||||
[](https://hub.docker.com/r/sickcodes/docker-osx/tags?page=1&ordering=last_updated)
|
[](https://hub.docker.com/r/sickcodes/docker-osx/tags?page=1&ordering=last_updated)
|
||||||
|
|
||||||
|
Monterey make your own image:
|
||||||
|
|
||||||
|
[](https://hub.docker.com/r/sickcodes/docker-osx/tags?page=1&ordering=last_updated)
|
||||||
|
|
||||||
Pre-made system by [Sick.Codes](https://sick.codes): username: `user`, password: `alpine`
|
Pre-made system by [Sick.Codes](https://sick.codes): username: `user`, password: `alpine`
|
||||||
|
|
||||||
[](https://hub.docker.com/r/sickcodes/docker-osx/tags?page=1&ordering=last_updated)
|
[](https://hub.docker.com/r/sickcodes/docker-osx/tags?page=1&ordering=last_updated)
|
||||||
@ -95,7 +285,14 @@ Bring-your-own-image setup (use any of the above first):
|
|||||||
|
|
||||||
[](https://hub.docker.com/r/sickcodes/docker-osx/tags?page=1&ordering=last_updated)
|
[](https://hub.docker.com/r/sickcodes/docker-osx/tags?page=1&ordering=last_updated)
|
||||||
|
|
||||||
|
Same as above but with `-e USERNAME` & `-e PASSWORD` and `-e OSX_COMMANDS="put your commands here"`
|
||||||
|
|
||||||
|
[](https://hub.docker.com/r/sickcodes/docker-osx/tags?page=1&ordering=last_updated)
|
||||||
|
|
||||||
## Capabilities
|
## Capabilities
|
||||||
|
- use iPhone OSX KVM on Linux using usbfluxd!
|
||||||
|
- macOS Monterey!
|
||||||
|
- Folder sharing
|
||||||
- SSH enabled (`localhost:50922`)
|
- SSH enabled (`localhost:50922`)
|
||||||
- VNC enabled (`localhost:8888`) if using ./vnc version
|
- VNC enabled (`localhost:8888`) if using ./vnc version
|
||||||
- [serial number generator!](https://github.com/sickcodes/osx-serial-generator)
|
- [serial number generator!](https://github.com/sickcodes/osx-serial-generator)
|
||||||
@ -163,7 +360,8 @@ Docker-OSX is licensed under the [GPL v3+](LICENSE). Contributions are welcomed
|
|||||||
|
|
||||||
### Other cool Docker/QEMU based projects
|
### Other cool Docker/QEMU based projects
|
||||||
- [Run Android in a Docker Container with Dock Droid](https://github.com/sickcodes/dock-droid)
|
- [Run Android in a Docker Container with Dock Droid](https://github.com/sickcodes/dock-droid)
|
||||||
- [Run iOS in a Docker container with Docker-eyeOS](https://github.com/sickcodes/Docker-eyeOS) - [https://github.com/sickcodes/Docker-eyeOS](https://github.com/sickcodes/Docker-eyeOS)
|
- [Run Android fully native on the host!](https://github.com/sickcodes/droid-native)
|
||||||
|
- [Run iOS 12 in a Docker container with Docker-eyeOS](https://github.com/sickcodes/Docker-eyeOS) - [https://github.com/sickcodes/Docker-eyeOS](https://github.com/sickcodes/Docker-eyeOS)
|
||||||
- [Run iMessage relayer in Docker with Bluebubbles.app](https://bluebubbles.app/) - [Getting started wiki](https://github.com/BlueBubblesApp/BlueBubbles-Server/wiki/Running-via-Docker)
|
- [Run iMessage relayer in Docker with Bluebubbles.app](https://bluebubbles.app/) - [Getting started wiki](https://github.com/BlueBubblesApp/BlueBubbles-Server/wiki/Running-via-Docker)
|
||||||
|
|
||||||
## Disclaimer
|
## Disclaimer
|
||||||
@ -189,6 +387,7 @@ Create your personal image using `:latest` or `big-sur`. Then, pull the image ou
|
|||||||
- `sickcodes/docker-osx:auto` - [I'm only interested in using the command line (useful for compiling software or using Homebrew headlessly).](#prebuilt-image-with-arbitrary-command-line-arguments)
|
- `sickcodes/docker-osx:auto` - [I'm only interested in using the command line (useful for compiling software or using Homebrew headlessly).](#prebuilt-image-with-arbitrary-command-line-arguments)
|
||||||
- `sickcodes/docker-osx:naked` - [I need iMessage/iCloud for security research.](#generating-serial-numbers)
|
- `sickcodes/docker-osx:naked` - [I need iMessage/iCloud for security research.](#generating-serial-numbers)
|
||||||
- `sickcodes/docker-osx:big-sur` - [I want to run Big Sur.](#quick-start-docker-osx)
|
- `sickcodes/docker-osx:big-sur` - [I want to run Big Sur.](#quick-start-docker-osx)
|
||||||
|
- `sickcodes/docker-osx:monterey` - [I want to run Monterey.](#quick-start-docker-osx)
|
||||||
|
|
||||||
## Initial setup
|
## Initial setup
|
||||||
Before you do anything else, you will need to turn on hardware virtualization in your BIOS. Precisely how will depend on your particular machine (and BIOS), but it should be straightforward.
|
Before you do anything else, you will need to turn on hardware virtualization in your BIOS. Precisely how will depend on your particular machine (and BIOS), but it should be straightforward.
|
||||||
@ -283,51 +482,6 @@ Big thank you to our contributors who have worked out almost every conceivable i
|
|||||||
|
|
||||||
[https://github.com/sickcodes/Docker-OSX/blob/master/CREDITS.md](https://github.com/sickcodes/Docker-OSX/blob/master/CREDITS.md)
|
[https://github.com/sickcodes/Docker-OSX/blob/master/CREDITS.md](https://github.com/sickcodes/Docker-OSX/blob/master/CREDITS.md)
|
||||||
|
|
||||||
### The big-sur image starts slowly after installation. Is this expected?
|
|
||||||
|
|
||||||
Automatic updates are still on in the container's settings. You may wish to turn them off. [We have future plans for development around this.](https://github.com/sickcodes/Docker-OSX/issues/227)
|
|
||||||
|
|
||||||
### What is `${DISPLAY:-:0.0}`?
|
|
||||||
|
|
||||||
`$DISPLAY` is the shell variable that refers to your X11 display server.
|
|
||||||
|
|
||||||
`${DISPLAY}` is the same, but allows you to join variables like this:
|
|
||||||
|
|
||||||
- e.g. `${DISPLAY}_${DISPLAY}` would print `:0.0_:0.0`
|
|
||||||
- e.g. `$DISPLAY_$DISPLAY` would print `:0.0`
|
|
||||||
|
|
||||||
...because `$DISPLAY_` is not `$DISPLAY`
|
|
||||||
|
|
||||||
`${variable:-fallback}` allows you to set a "fallback" variable to be substituted if `$variable` is not set.
|
|
||||||
|
|
||||||
You can also use `${variable:=fallback}` to set that variable (in your current terminal).
|
|
||||||
|
|
||||||
In Docker-OSX, we assume, `:0.0` is your default `$DISPLAY` variable.
|
|
||||||
|
|
||||||
You can see what yours is
|
|
||||||
|
|
||||||
```bash
|
|
||||||
echo $DISPLAY
|
|
||||||
```
|
|
||||||
|
|
||||||
That way, `${DISPLAY:-:0.0}` will use whatever variable your X11 server has set for you, else `:0.0`
|
|
||||||
|
|
||||||
### What is `-v /tmp/.X11-unix:/tmp/.X11-unix`?
|
|
||||||
|
|
||||||
`-v` is a Docker command-line option that lets you pass a volume to the container.
|
|
||||||
|
|
||||||
The directory that we are letting the Docker container use is a X server display socket.
|
|
||||||
|
|
||||||
`/tmp/.X11-unix`
|
|
||||||
|
|
||||||
If we let the Docker container use the same display socket as our own environment, then any applications you run inside the Docker container will show up on your screen too! [https://www.x.org/archive/X11R6.8.0/doc/RELNOTES5.html](https://www.x.org/archive/X11R6.8.0/doc/RELNOTES5.html)
|
|
||||||
|
|
||||||
### ALSA errors on startup or container creation
|
|
||||||
|
|
||||||
You may when initialising or booting into a container see errors from the `(qemu)` console of the following form:
|
|
||||||
`ALSA lib blahblahblah: (function name) returned error: no such file or directory`. These are more or less expected. As long as you are able to boot into the container and everything is working, no reason to worry about these.
|
|
||||||
|
|
||||||
See also: [here](https://github.com/sickcodes/Docker-OSX/issues/174).
|
|
||||||
|
|
||||||
### Start the same container later (persistent disk)
|
### Start the same container later (persistent disk)
|
||||||
|
|
||||||
@ -369,7 +523,7 @@ docker ps -a
|
|||||||
docker start -ai -i <Replace this with your ID>
|
docker start -ai -i <Replace this with your ID>
|
||||||
```
|
```
|
||||||
|
|
||||||
### LibGTK errors
|
### LibGTK errors "connection refused"
|
||||||
|
|
||||||
You may see one or more libgtk-related errors if you do not have everything set up for hardware virtualisation yet. If you have not yet done so, check out the [initial setup](#initial-setup) section and the [routine checks](#routine-checks) section as you may have missed a setup step or may not have all the needed Docker dependencies ready to go.
|
You may see one or more libgtk-related errors if you do not have everything set up for hardware virtualisation yet. If you have not yet done so, check out the [initial setup](#initial-setup) section and the [routine checks](#routine-checks) section as you may have missed a setup step or may not have all the needed Docker dependencies ready to go.
|
||||||
|
|
||||||
@ -525,6 +679,77 @@ nano /etc/sysctl.conf || vi /etc/sysctl.conf || vim /etc/sysctl.conf
|
|||||||
# now reboot
|
# now reboot
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Share folder with Docker-OSX QEMU macOS
|
||||||
|
|
||||||
|
Sharing a folder with guest is quite simple.
|
||||||
|
|
||||||
|
Your folder, will go to /mnt/hostshare inside the Arch container which is then passed over QEMU.
|
||||||
|
|
||||||
|
Then mount using `sudo -S mount_9p hostshare` from inside the mac.
|
||||||
|
|
||||||
|
For example,
|
||||||
|
|
||||||
|
```bash
|
||||||
|
FOLDER=~/somefolder
|
||||||
|
```
|
||||||
|
|
||||||
|
```bash
|
||||||
|
-v "${FOLDER}:/mnt/hostshare" \
|
||||||
|
-e EXTRA="-virtfs local,path=/mnt/hostshare,mount_tag=hostshare,security_model=passthrough,id=hostshare" \
|
||||||
|
```
|
||||||
|
|
||||||
|
Full example:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# stat mac_hdd_ng.img
|
||||||
|
SHARE=~/somefolder
|
||||||
|
|
||||||
|
docker run -it \
|
||||||
|
--device /dev/kvm \
|
||||||
|
-p 50922:10022 \
|
||||||
|
-v /tmp/.X11-unix:/tmp/.X11-unix \
|
||||||
|
-e "DISPLAY=${DISPLAY:-:0.0}" \
|
||||||
|
-v "${PWD}/mac_hdd_ng.img:/home/arch/OSX-KVM/mac_hdd_ng.img" \
|
||||||
|
-v "${SHARE}:/mnt/hostshare" \
|
||||||
|
-e EXTRA="-virtfs local,path=/mnt/hostshare,mount_tag=hostshare,security_model=passthrough,id=hostshare" \
|
||||||
|
sickcodes/docker-osx:latest
|
||||||
|
|
||||||
|
# !!! Open Terminal inside macOS and run the following command to mount the virtual file system
|
||||||
|
# sudo -S mount_9p hostshare
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
### Share USB Drive into macOS over QEMU
|
||||||
|
|
||||||
|
## Mount USB Drive (Hotplug/Hot Plug USB)
|
||||||
|
|
||||||
|
Start your container.
|
||||||
|
|
||||||
|
Pick a port, for example, `7700`.
|
||||||
|
|
||||||
|
`lsusb` to get `vid:pid`
|
||||||
|
|
||||||
|
On Linux:
|
||||||
|
`sudo usbredirserver -p 7700 1e3d:2096`
|
||||||
|
|
||||||
|
Now, in the Docker window hit Enter to see the `(qemu)` console.
|
||||||
|
|
||||||
|
You can add/remove the disk using commands like this, even once the machine is started:
|
||||||
|
|
||||||
|
`chardev-add socket,id=usbredirchardev1,port=7700,host=172.17.0.1`
|
||||||
|
|
||||||
|
`device_add usb-redir,chardev=usbredirchardev1,id=usbredirdev1,debug=4`
|
||||||
|
|
||||||
|
## Mount USB Drive inside macOS at boot Docker OSX
|
||||||
|
|
||||||
|
```bash
|
||||||
|
PORT=7700
|
||||||
|
IP_ADDRESS=172.17.0.1
|
||||||
|
|
||||||
|
-e EXTRA="-chardev socket,id=usbredirchardev1,port=${PORT},host=${IP_ADDRESS} -device usb-redir,chardev=usbredirchardev1,id=usbredirdev1,debug=4" \`
|
||||||
|
```
|
||||||
|
|
||||||
### Fedora: enable internet connectivity with a bridged network
|
### Fedora: enable internet connectivity with a bridged network
|
||||||
|
|
||||||
Fedora's default firewall settings may prevent Docker's network interface from reaching the internet. In order to reoslve this, you will need to whitelist the interface in your firewall:
|
Fedora's default firewall settings may prevent Docker's network interface from reaching the internet. In order to reoslve this, you will need to whitelist the interface in your firewall:
|
||||||
@ -650,7 +875,10 @@ At any time, verify your serial number before logging into iCloud, etc.
|
|||||||
# this is a quick way to check your serial number via cli inside OSX
|
# this is a quick way to check your serial number via cli inside OSX
|
||||||
ioreg -l | grep IOPlatformSerialNumber
|
ioreg -l | grep IOPlatformSerialNumber
|
||||||
|
|
||||||
# or from the host
|
# test some commands
|
||||||
|
sshpass -p 'alpine' ssh user@localhost -p 50922 'ping google.com'
|
||||||
|
|
||||||
|
# check your serial number
|
||||||
sshpass -p 'alpine' ssh user@localhost -p 50922 'ioreg -l | grep IOPlatformSerialNumber'
|
sshpass -p 'alpine' ssh user@localhost -p 50922 'ioreg -l | grep IOPlatformSerialNumber'
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -714,8 +942,9 @@ docker run --rm -it \
|
|||||||
-e NOPICKER=true \
|
-e NOPICKER=true \
|
||||||
-e GENERATE_UNIQUE=true \
|
-e GENERATE_UNIQUE=true \
|
||||||
-e DEVICE_MODEL="iMacPro1,1" \
|
-e DEVICE_MODEL="iMacPro1,1" \
|
||||||
-e OSX_COMMANDS='ioreg -l | grep IOPlatformSerialNumber' \
|
|
||||||
sickcodes/docker-osx:auto
|
sickcodes/docker-osx:auto
|
||||||
|
|
||||||
|
# -e OSX_COMMANDS='ioreg -l | grep IOPlatformSerialNumber' \
|
||||||
```
|
```
|
||||||
|
|
||||||
#### This example generates a specific set of serial numbers at runtime
|
#### This example generates a specific set of serial numbers at runtime
|
||||||
@ -822,7 +1051,10 @@ Or tell the container to use specific ones using `-e GENERATE_SPECIFIC=true`
|
|||||||
|
|
||||||
### I'd like to run Docker-OSX with WSL2 (Windows, Ubuntu)
|
### I'd like to run Docker-OSX with WSL2 (Windows, Ubuntu)
|
||||||
|
|
||||||
Ensure KVM is enabled and `x11-apps` is installed.
|
Ensure KVM is enabled and `x11-apps` is installed.
|
||||||
|
|
||||||
|
to void troubles related to docker daemons on WLS 2, use Docker on Windows, and extern it to your distro.
|
||||||
|
See Docker Docs for the complete detail setup [here](https://docs.docker.com/docker-for-windows/wsl/)
|
||||||
|
|
||||||
See more in-depth discussion [here](https://github.com/sickcodes/Docker-OSX/issues/17) and [here](https://github.com/sickcodes/Docker-OSX/issues/60).
|
See more in-depth discussion [here](https://github.com/sickcodes/Docker-OSX/issues/17) and [here](https://github.com/sickcodes/Docker-OSX/issues/60).
|
||||||
|
|
||||||
@ -1112,29 +1344,12 @@ The Quick Start command should work out of the box, provided that you keep the f
|
|||||||
-e "DISPLAY=${DISPLAY:-:0.0}" \
|
-e "DISPLAY=${DISPLAY:-:0.0}" \
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Download the image manually and use it in Docker
|
|
||||||
|
|
||||||
[](https://hub.docker.com/r/sickcodes/docker-osx/tags?page=1&ordering=last_updated)
|
|
||||||
|
|
||||||
|
|
||||||
This is a particularly good way for downloading the container, in case Docker's CDN (or your connection) happens to be slow.
|
|
||||||
|
|
||||||
```bash
|
|
||||||
wget https://images2.sick.codes/mac_hdd_ng_auto.img
|
|
||||||
|
|
||||||
docker run -it \
|
|
||||||
--device /dev/kvm \
|
|
||||||
-p 50922:10022 \
|
|
||||||
-v "${PWD}/mac_hdd_ng_auto.img:/image" \
|
|
||||||
-v /tmp/.X11-unix:/tmp/.X11-unix \
|
|
||||||
-e "DISPLAY=${DISPLAY:-:0.0}" \
|
|
||||||
sickcodes/docker-osx:naked
|
|
||||||
```
|
|
||||||
|
|
||||||
#### Prebuilt image with arbitrary command line arguments
|
#### Prebuilt image with arbitrary command line arguments
|
||||||
|
|
||||||
[](https://hub.docker.com/r/sickcodes/docker-osx/tags?page=1&ordering=last_updated)
|
[](https://hub.docker.com/r/sickcodes/docker-osx/tags?page=1&ordering=last_updated)
|
||||||
|
|
||||||
|
`-e OSX_COMMANDS` lets you run any commands inside the container
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker pull sickcodes/docker-osx:auto
|
docker pull sickcodes/docker-osx:auto
|
||||||
|
|
||||||
@ -1144,12 +1359,35 @@ docker run -it \
|
|||||||
-p 50922:10022 \
|
-p 50922:10022 \
|
||||||
-v /tmp/.X11-unix:/tmp/.X11-unix \
|
-v /tmp/.X11-unix:/tmp/.X11-unix \
|
||||||
-e "DISPLAY=${DISPLAY:-:0.0}" \
|
-e "DISPLAY=${DISPLAY:-:0.0}" \
|
||||||
-e "OSX_COMMANDS=/bin/bash -c \"pwd && uname -a\"" \
|
-e "OSX_COMMANDS=/bin/bash -c \"put your commands here\"" \
|
||||||
sickcodes/docker-osx:auto
|
sickcodes/docker-osx:auto
|
||||||
|
|
||||||
# Boots in a minute or two!
|
# Boots in a minute or two!
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
```bash
|
||||||
|
|
||||||
|
OR if you have an image already and just want to log in and execute arbitrary commands:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker pull sickcodes/docker-osx:naked-auto
|
||||||
|
|
||||||
|
# boot to OS X shell + display + specify commands to run inside OS X!
|
||||||
|
docker run -it \
|
||||||
|
--device /dev/kvm \
|
||||||
|
-p 50922:10022 \
|
||||||
|
-v /tmp/.X11-unix:/tmp/.X11-unix \
|
||||||
|
-e "DISPLAY=${DISPLAY:-:0.0}" \
|
||||||
|
-e USERNAME=yourusername \
|
||||||
|
-e PASSWORD=yourpassword \
|
||||||
|
-e "OSX_COMMANDS=/bin/bash -c \"put your commands here\"" \
|
||||||
|
sickcodes/docker-osx:naked-auto
|
||||||
|
|
||||||
|
# Boots in a minute or two!
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
### Further examples
|
### Further examples
|
||||||
|
|
||||||
There's a myriad of other potential use cases that can work perfectly with Docker-OSX, some of which you'll see below!
|
There's a myriad of other potential use cases that can work perfectly with Docker-OSX, some of which you'll see below!
|
||||||
@ -1238,6 +1476,7 @@ Note: `-disable-ticketing` will allow unauthenticated access to the VM. See the
|
|||||||
```bash
|
```bash
|
||||||
docker run \
|
docker run \
|
||||||
--device /dev/kvm \
|
--device /dev/kvm \
|
||||||
|
-p 3001:3001 \
|
||||||
-p 50922:10022 \
|
-p 50922:10022 \
|
||||||
-e "DISPLAY=${DISPLAY:-:0.0}" \
|
-e "DISPLAY=${DISPLAY:-:0.0}" \
|
||||||
-e EXTRA="-monitor telnet::45454,server,nowait -nographic -serial null -spice disable-ticketing,port=3001" \
|
-e EXTRA="-monitor telnet::45454,server,nowait -nographic -serial null -spice disable-ticketing,port=3001" \
|
||||||
@ -1264,23 +1503,6 @@ docker run \
|
|||||||
newImageName
|
newImageName
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Run Catalina Pre-Installed [](https://hub.docker.com/r/sickcodes/docker-osx/tags?page=1&ordering=last_updated)
|
|
||||||
|
|
||||||
```bash
|
|
||||||
docker pull sickcodes/docker-osx:auto
|
|
||||||
|
|
||||||
# boot directly into a real OS X shell with a visual display [NOT HEADLESS]
|
|
||||||
docker run -it \
|
|
||||||
--device /dev/kvm \
|
|
||||||
-p 50922:10022 \
|
|
||||||
-v /tmp/.X11-unix:/tmp/.X11-unix \
|
|
||||||
-e "DISPLAY=${DISPLAY:-:0.0}" \
|
|
||||||
sickcodes/docker-osx:auto
|
|
||||||
|
|
||||||
# username is user
|
|
||||||
# passsword is alpine
|
|
||||||
```
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker pull sickcodes/docker-osx:auto
|
docker pull sickcodes/docker-osx:auto
|
||||||
|
|
||||||
@ -1351,3 +1573,52 @@ chmod +x ./Launch-nopicker.sh
|
|||||||
sed -i -e s/OpenCore\.qcow2/OpenCore\-nopicker\.qcow2/ ./Launch-nopicker.sh
|
sed -i -e s/OpenCore\.qcow2/OpenCore\-nopicker\.qcow2/ ./Launch-nopicker.sh
|
||||||
"
|
"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### The big-sur image starts slowly after installation. Is this expected?
|
||||||
|
|
||||||
|
Automatic updates are still on in the container's settings. You may wish to turn them off. [We have future plans for development around this.](https://github.com/sickcodes/Docker-OSX/issues/227)
|
||||||
|
|
||||||
|
### What is `${DISPLAY:-:0.0}`?
|
||||||
|
|
||||||
|
`$DISPLAY` is the shell variable that refers to your X11 display server.
|
||||||
|
|
||||||
|
`${DISPLAY}` is the same, but allows you to join variables like this:
|
||||||
|
|
||||||
|
- e.g. `${DISPLAY}_${DISPLAY}` would print `:0.0_:0.0`
|
||||||
|
- e.g. `$DISPLAY_$DISPLAY` would print `:0.0`
|
||||||
|
|
||||||
|
...because `$DISPLAY_` is not `$DISPLAY`
|
||||||
|
|
||||||
|
`${variable:-fallback}` allows you to set a "fallback" variable to be substituted if `$variable` is not set.
|
||||||
|
|
||||||
|
You can also use `${variable:=fallback}` to set that variable (in your current terminal).
|
||||||
|
|
||||||
|
In Docker-OSX, we assume, `:0.0` is your default `$DISPLAY` variable.
|
||||||
|
|
||||||
|
You can see what yours is
|
||||||
|
|
||||||
|
```bash
|
||||||
|
echo $DISPLAY
|
||||||
|
```
|
||||||
|
|
||||||
|
That way, `${DISPLAY:-:0.0}` will use whatever variable your X11 server has set for you, else `:0.0`
|
||||||
|
|
||||||
|
### What is `-v /tmp/.X11-unix:/tmp/.X11-unix`?
|
||||||
|
|
||||||
|
`-v` is a Docker command-line option that lets you pass a volume to the container.
|
||||||
|
|
||||||
|
The directory that we are letting the Docker container use is a X server display socket.
|
||||||
|
|
||||||
|
`/tmp/.X11-unix`
|
||||||
|
|
||||||
|
If we let the Docker container use the same display socket as our own environment, then any applications you run inside the Docker container will show up on your screen too! [https://www.x.org/archive/X11R6.8.0/doc/RELNOTES5.html](https://www.x.org/archive/X11R6.8.0/doc/RELNOTES5.html)
|
||||||
|
|
||||||
|
### ALSA errors on startup or container creation
|
||||||
|
|
||||||
|
You may when initialising or booting into a container see errors from the `(qemu)` console of the following form:
|
||||||
|
`ALSA lib blahblahblah: (function name) returned error: no such file or directory`. These are more or less expected. As long as you are able to boot into the container and everything is working, no reason to worry about these.
|
||||||
|
|
||||||
|
See also: [here](https://github.com/sickcodes/Docker-OSX/issues/174).
|
||||||
|
|
||||||
|
14
discord-logo.svg
Normal file
14
discord-logo.svg
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
<!-- animated SVG is from https://github.com/NNTin/discord-logo -->
|
||||||
|
<svg width="90" height="90" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" class="discord-logo-container" viewBox="0 0 48 48">
|
||||||
|
<defs>
|
||||||
|
<g>
|
||||||
|
<path id="discord-logo" d="m40,12c0,0 -4.585,-3.588 -10,-4l-0.488,0.976c4.896,1.198 7.142,2.915 9.488,5.024c-4.045,-2.065 -8.039,-4 -15,-4s-10.955,1.935 -15,4c2.346,-2.109 5.018,-4.015 9.488,-5.024l-0.488,-0.976c-5.681,0.537 -10,4 -10,4s-5.121,7.425 -6,22c5.162,5.953 13,6 13,6l1.639,-2.185c-2.782,-0.967 -5.924,-2.694 -8.639,-5.815c3.238,2.45 8.125,5 16,5s12.762,-2.55 16,-5c-2.715,3.121 -5.857,4.848 -8.639,5.815l1.639,2.185c0,0 7.838,-0.047 13,-6c-0.879,-14.575 -6,-22 -6,-22zm-22.5,18c-1.933,0 -3.5,-1.791 -3.5,-4c0,-2.209 1.567,-4 3.5,-4s3.5,1.791 3.5,4c0,2.209 -1.567,4 -3.5,4zm13,0c-1.933,0 -3.5,-1.791 -3.5,-4c0,-2.209 1.567,-4 3.5,-4s3.5,1.791 3.5,4c0,2.209 -1.567,4 -3.5,4z" />
|
||||||
|
</g>
|
||||||
|
</defs>
|
||||||
|
<g class="discord-logo">
|
||||||
|
<use class="discord-original" href="#discord-logo">
|
||||||
|
</use>
|
||||||
|
<animateTransform attributeName="transform" type="rotate" values="0 24 24;-18 24 24;16.8 24 24;-11.4 24 24;8.7 24 24;-7.5 24 24;6 24 24;-4.8 24 24;3.79 24 24;-3.12 24 24;2.52 24 24;-2.01 24 24;1.56 24 24;-1.2 24 24;0.96 24 24;-0.75 24 24;0.6 24 24;-0.48 24 24;0.384 24 24;0 24 24;0 24 24;0 24 24;0 24 24;0 24 24;0 24 24" begin="0s" dur="2s" fill="freeze" repeatCount="indefinite" />
|
||||||
|
</g>
|
||||||
|
<animate fill="freeze" dur="0000ms" begin="0s" values="#17f018;#000000;#17f018;#000000;#17f018;#000000;#17f018;#000000;#17f018" calMode="linear" attributeName="fill" repeatCount="indefinite" />
|
||||||
|
</svg>
|
After Width: | Height: | Size: 1.6 KiB |
Submodule osx-serial-generator updated: f7628e65fd...7a56669ec4
@ -122,7 +122,9 @@ NO_CACHE="${NO_CACHE:=--no-cache}"
|
|||||||
TEST_BUILDS=(
|
TEST_BUILDS=(
|
||||||
'docker-osx:latest'
|
'docker-osx:latest'
|
||||||
'docker-osx:naked'
|
'docker-osx:naked'
|
||||||
|
'docker-osx:naked-auto'
|
||||||
'docker-osx:big-sur'
|
'docker-osx:big-sur'
|
||||||
|
'docker-osx:monterey'
|
||||||
'docker-osx:auto'
|
'docker-osx:auto'
|
||||||
#'docker-osx:auto-big-sur'
|
#'docker-osx:auto-big-sur'
|
||||||
)
|
)
|
||||||
@ -221,6 +223,16 @@ docker-osx:naked () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
docker-osx:naked-auto () {
|
||||||
|
docker build ${NO_CACHE} \
|
||||||
|
--build-arg RANKMIRRORS=true \
|
||||||
|
--build-arg MIRROR_COUNTRY="${MIRROR_COUNTRY}" \
|
||||||
|
-f ./Dockerfile.naked-auto \
|
||||||
|
-t docker-osx:naked-auto .
|
||||||
|
docker tag docker-osx:naked-auto sickcodes/docker-osx:naked-auto
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
docker-osx:big-sur () {
|
docker-osx:big-sur () {
|
||||||
docker build ${NO_CACHE} \
|
docker build ${NO_CACHE} \
|
||||||
--build-arg VERSION=11 \
|
--build-arg VERSION=11 \
|
||||||
@ -231,6 +243,15 @@ docker-osx:big-sur () {
|
|||||||
docker tag docker-osx:big-sur sickcodes/docker-osx:big-sur
|
docker tag docker-osx:big-sur sickcodes/docker-osx:big-sur
|
||||||
}
|
}
|
||||||
|
|
||||||
|
docker-osx:monterey () {
|
||||||
|
docker build ${NO_CACHE} \
|
||||||
|
--build-arg RANKMIRRORS=true \
|
||||||
|
--build-arg MIRROR_COUNTRY="${MIRROR_COUNTRY}" \
|
||||||
|
-f ./Dockerfile.monterey \
|
||||||
|
-t docker-osx:monterey .
|
||||||
|
docker tag docker-osx:monterey sickcodes/docker-osx:monterey
|
||||||
|
}
|
||||||
|
|
||||||
docker-osx:auto () {
|
docker-osx:auto () {
|
||||||
docker build ${NO_CACHE} \
|
docker build ${NO_CACHE} \
|
||||||
--build-arg RANKMIRRORS=true \
|
--build-arg RANKMIRRORS=true \
|
||||||
@ -290,7 +311,9 @@ if [[ "${DOCKER_USERNAME}" ]] && [[ "${DOCKER_PASSWORD}" ]]; then
|
|||||||
docker login --username "${DOCKER_USERNAME}" --password "${DOCKER_PASSWORD}" \
|
docker login --username "${DOCKER_USERNAME}" --password "${DOCKER_PASSWORD}" \
|
||||||
&& docker push sickcodes/docker-osx:latest \
|
&& docker push sickcodes/docker-osx:latest \
|
||||||
&& docker push sickcodes/docker-osx:big-sur \
|
&& docker push sickcodes/docker-osx:big-sur \
|
||||||
|
&& docker push sickcodes/docker-osx:monterey \
|
||||||
&& docker push sickcodes/docker-osx:naked \
|
&& docker push sickcodes/docker-osx:naked \
|
||||||
|
&& docker push sickcodes/docker-osx:naked-auto \
|
||||||
&& docker push sickcodes/docker-osx:auto \
|
&& docker push sickcodes/docker-osx:auto \
|
||||||
&& docker push sickcodes/docker-osx:auto-big-sur \
|
&& docker push sickcodes/docker-osx:auto-big-sur \
|
||||||
&& touch PUSHED
|
&& touch PUSHED
|
||||||
|
Reference in New Issue
Block a user