Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker Image disappeared #799

Open
techNomad24 opened this issue Aug 27, 2024 · 68 comments
Open

Docker Image disappeared #799

techNomad24 opened this issue Aug 27, 2024 · 68 comments
Assignees
Labels
bug Something isn't working

Comments

@techNomad24
Copy link

docker build -t docker-osx --build-arg SHORTNAME=sonoma .

Unable to find image 'sickcodes/docker-osx:sonoma' locally
docker: Error response from daemon: pull access denied for sickcodes/docker-osx, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
See 'docker run --help'.

If we go on the on the Docker Hub page there is nothing more.
Screenshot 2024-08-27 122230

@mettek88
Copy link

docker build -t docker-osx --build-arg SHORTNAME=sonoma .

Unable to find image 'sickcodes/docker-osx:sonoma' locally docker: Error response from daemon: pull access denied for sickcodes/docker-osx, repository does not exist or may require 'docker login': denied: requested access to the resource is denied. See 'docker run --help'.

If we go on the on the Docker Hub page there is nothing more. Screenshot 2024-08-27 122230

Same problem for me i think the repo as been shutdown

@ngjiaxue
Copy link

Facing the exact same issue.
image

@TrevorDrayton03
Copy link

Likewise!

@ZimaBlueee
Copy link

+1

1 similar comment
@Monsteel
Copy link

+1

@Avi0n
Copy link

Avi0n commented Aug 28, 2024

To show you're having the same issue, please click 👍 on the original post instead of making new comments. It notifies/emails everyone who's subscribed to this issue every time a new comment is made. Thanks!

@miniwater
Copy link

+1

@sickcodes
Copy link
Owner

It's gone from my account. No email or information received as of yet. I've sent an email to Docker Hub support, will update once I hear back... very strange!

@sickcodes sickcodes added the bug Something isn't working label Aug 28, 2024
@BobH-Official
Copy link

Wondering is there any plan to change to other registry service is Docker Hub is not working?

@qiqiqiao
Copy link

mark

@sickcodes
Copy link
Owner

Apple reported the Docker-OSX repository to Docker Hub saying that it violated Apple copyright and Docker Hub moderated the repository. Will update later today when I have more information from Docker Hub.

@sickcodes
Copy link
Owner

The DMCA notice:

image

@leioukupo
Copy link

The DMCA notice:

image

Can you provide a link to the network disk of the tar file, I only recently learned about this project, and I want to experience it

@Redhawk18
Copy link

I would also backup the this repo by forking it, Apple is not friendly towards open source projects. I would expect to see a dmca from github any day.

@vanderful77
Copy link

Find those images get banned the exact day I learned this project. I think upload those files onto a cloud disk may temporately resolve the issue? This seems to be an promising project and I actually want to try iy out.

@Avi0n
Copy link

Avi0n commented Aug 30, 2024

I would also backup the this repo by forking it

Forking this repo will likely not help. When youtube-dl was DMCA'd, all forks were also taken down. Cloning would be the best way to back up a repo.

Apple is not friendly towards open source projects. I would expect to see a dmca from github any day.

I'll make one reply before moving on, as it's off-topic and risks sparking a lengthy debate. However, I'd like to respectfully challenge the idea that Apple is unfriendly to open-source. Apple released Swift under the permissive Apache 2.0 license, which I doubt they'd do if they weren't friendly towards open-source.

That being said, it's well-documented that Apple typically frowns upon hackintosh projects once they become aware of them. I wonder if the inclusion of the OSK key in this project might have been a contributing factor.

Regardless of the reason, I'm sure sickcodes will provide an update when possible.

@KTMGv5
Copy link

KTMGv5 commented Sep 1, 2024

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' \
registry.cn-hangzhou.aliyuncs.com/shrimp-images/docker-osx:ventura

^^ Corrected

@leioukupo
Copy link

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' registry.cn-hangzhou.aliyuncs.com/shrimp-images/docker-osx:ventura

Cloning into 'OpenCorePkg'...
fatal: unable to access 'https://github.com/acidanthera/OpenCorePkg.git/': SSL certificate problem: unable to get local issuer certificate

@HFUT-DY
Copy link

HFUT-DY commented Sep 1, 2024

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' registry.cn-hangzhou.aliyuncs.com/shrimp-images/docker-osx:ventura

Cloning into 'OpenCorePkg'... fatal: unable to access 'https://github.com/acidanthera/OpenCorePkg.git/': SSL certificate problem: unable to get local issuer certificate

Maybe you are using a proxy. Type git config --global http.sslVerify false to disable ssl check.

@Polyfish0
Copy link

For everyone, I have a mirror of the project on my private git. If this get DMCA'd you can download the source from there: https://git.polyfish0.de/mika/Docker-OSX

@leioukupo
Copy link

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' registry.cn-hangzhou.aliyuncs.com/shrimp-images/docker-osx:ventura

Cloning into 'OpenCorePkg'... fatal: unable to access 'https://github.com/acidanthera/OpenCorePkg.git/': SSL certificate problem: unable to get local issuer certificate

Maybe you are using a proxy. Type git config --global http.sslVerify false to disable ssl check.

it's useless. i can clone this repositories(OpenCorePkg). But when I execute this string of commands, I repeat this error. So I think it's a problem with this mirror

@ratnapolepalli
Copy link

Could we get for Sonoma as well

@DevsGrupoCoagro
Copy link

Alguém conseguiu fazer isso?

PS C:\Docker-OSX> docker run -it --device /dev/kvm -p 50922:10022 -v /tmp/.X11-unix:/tmp/.X11-unix -e "DISPLAY=${DISPLAY:-:0.0}" sickcodes/docker-osx:latest
Unable to find image 'sickcodes/docker-osx:latest' locally
docker: Error response from daemon: pull access denied for sickcodes/docker-osx, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
See 'docker run --help'.

@vuanj
Copy link

vuanj commented Sep 2, 2024

@DevsGrupoCoagro dude, just read this thread. the image has been deleted due to DMCA

@beeman
Copy link

beeman commented Sep 2, 2024

@DevsGrupoCoagro dude, just read this thread. the image has been deleted due to DMCA

Is there any solution?

The solution is to read this thread instead of asking randomly.

@voidarclabs
Copy link

voidarclabs commented Sep 2, 2024

The best plan of action for anyone wishing to make a docker container is to clone the repo and build your own image locally. Alternately, there is another repo that has similar functionality.

@JulyIghor
Copy link

Could be DMCA possible because of this?
telegram-cloud-photo-size-2-5382110831464015034-y

@danielchenming
Copy link

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' \
registry.cn-hangzhou.aliyuncs.com/shrimp-images/docker-osx:ventura

^^ 已更正

@KTMGv5 Do you have a Sonoma version of the image?Looking forward to your reply, thank you!

@voidarclabs
Copy link

voidarclabs commented Sep 3, 2024

Could be DMCA possible because of this?

@JulyIghor I believe the Dmca is about the fact that the docker image was redistributing the macos installer images etc. The reason that this repo hasn't been taken down is because the installer images are downloaded at buildtime (as far as i know), therefore making the repo void of copyright material. If you can figure out a way to inject your own installer iso, the project should work as normal, just less automatically.

@sickcodes, considering the ruthlessness of apple's legal team, may I suggest (for now) removing or obfuscating the links you're using to retrieve the OSX installers? Putting them in some sort of secret format should be enough to dissuade github or apple from trying to take down the project. Just a thought. If you think it's fine, then I'm not nearly qualified to say otherwise.

@kuba-04
Copy link

kuba-04 commented Sep 13, 2024

instalou os compontens do linux antes como kvm?

no

@osmarjberaldo
Copy link

vc tem que seguir instalação dos pacotes do linux e so no momento de instalar iso vc vai fazer usando codigo que disponibilizei, mais antes precisa seguir passos do instalação padrao `` # ARCH
sudo pacman -S qemu libvirt dnsmasq virt-manager bridge-utils flex bison iptables-nft edk2-ovmf

UBUNTU DEBIAN

sudo apt install qemu qemu-kvm libvirt-clients libvirt-daemon-system bridge-utils virt-manager libguestfs-tools

CENTOS RHEL FEDORA

sudo yum install libvirt qemu-kvm
Then, enable libvirt and load the KVM kernel module:

sudo systemctl enable --now libvirtd
sudo systemctl enable --now virtlogd

echo 1 | sudo tee /sys/module/kvm/parameters/ignore_msrs

sudo modprobe kvm

@kuba-04
Copy link

kuba-04 commented Sep 13, 2024

Thank you @criandoideiasoficial, that indeed helped. Then what to do with this message? What am I missing now?

image

@alejoluc
Copy link

alejoluc commented Sep 13, 2024

Got it to work using ventura. Didn't work with Catalina. Didn't try with sonoma

Host: Windows 11, WSL 2, Main distro Ubuntu-20, Docker Desktop

Steps taken

In Powershell:

$ git clone https://github.com/sickcodes/Docker-OSX.git
$ cd Docker-OSX
$ docker build -t sickcodes/docker-osx:ventura --build-arg SHORTNAME=ventura .
  • Entered WSL
$ sudo apt-get update
$ sudo apt -y install bridge-utils cpu-checker libvirt-clients libvirt-daemon qemu qemu-kvm
$ sudo apt install x11-apps -y
$ sudo apt install -y tasksel
$ sudo tasksel install xubuntu-desktop
$ sudo apt install gtk2-engines
  • Changed to root user and added these lines
$ sudo su
$ nano ~/.bashrc

export DISPLAY=$(ip route | grep default | awk '{print $3}'):0.0
export LIBGL_ALWAYS_INDIRECT=1
sudo /etc/init.d/dbus start &> /dev/null

$ sudo xhost +local:root`
  • Downloaded https://sourceforge.net/projects/vcxsrv/ and installed
  • Opened XLaunch
  • Chose "Multiple Windows"
  • First screen. Set window number as 0 (didn't test with -1)
  • Next screen. Select "Start no client"
  • Next screen. Ensure all options are checked including "disable access control". Additional parameters: -ac -listen tcp
  • Finish. Allow network access / firewall if prompted.
  • Exited wsl
  • Ran in powershell
$ wsl --update
$ wsl --shutdown
$ wsl
  • Started Docker Desktop
  • Verified correct IP in env var and connection from the Docker container by running in WSL
    $ docker run -it --entrypoint /bin/bash --device /dev/kvm -e "DISPLAY=$DISPLAY" sickcodes/docker-osx:ventura
	* Inside the container shell:
	 $ echo $DISPLAY
	 $ ip route
	 (grab IP from previous command)
	 $ ping -c 4 172.X.X.X
  • Ran in WSL
    $ docker run -it --device /dev/kvm -p 50922:10022 -v /tmp/.X11-unix:/tmp/.X11-unix -e "DISPLAY=${DISPLAY}" sickcodes/docker-osx:ventura

I did it again to verify all the steps work in this order on my setup. Hope this helps

@kftof
Copy link

kftof commented Sep 15, 2024

Thanks @alejoluc , this also works on Sonoma.

@ZeroToH3ro
Copy link

why I always stuck at step macOs Ventura select the disk where you want to install MacOS

@kftof
Copy link

kftof commented Sep 17, 2024

To start the system, on AMD processors, you will probably need to add these arguments :
-e CPU='Haswell-noTSX' -e CPUID_FLAGS='kvm=on,vendor=GenuineIntel,+invtsc,vmware-cpuid-freq=on'

My config : W11, WSL2, Ubuntu 20.04, Docker Desktop, Ryzen 5800X

@ZeroToH3ro
Copy link

ZeroToH3ro commented Sep 17, 2024

To start the system, on AMD processors, you will probably need to add these arguments : -e CPU='Haswell-noTSX' -e CPUID_FLAGS='kvm=on,vendor=GenuineIntel,+invtsc,vmware-cpuid-freq=on'

My config : W11, WSL2, Ubuntu 20.04, Docker Desktop, Ryzen 5800X

I should add these arguments on this command docker run -it --device /dev/kvm -p 50922:10022 -v /tmp/.X11-unix:/tmp/.X11-unix -e "DISPLAY=${DISPLAY}" sickcodes/docker-osx:ventura right

@thewanderingtraderm
Copy link

how to install macos sequoia with this

@mouadtk
Copy link

mouadtk commented Sep 18, 2024

need to install x11-xserver-utils

$ sudo xhost +local:root`

@poppop9
Copy link

poppop9 commented Sep 21, 2024

hello,Do you have the image file of the tar package now? If so, can you send me a copy? Thank you

@Harsh-007-max
Copy link

need help idk what is this just need macos ventura working in docker

Saving http://oscdn.apple.com/content/downloads/28/14/042-23155/4rscm4lvp3084gutfgpkwj5eex0yyxmzkt/RecoveryImage/BaseSystem.chunklist to ./BaseSystem.chunklist...
Traceback (most recent call last):
  File "/home/arch/OSX-KVM/./fetch-macOS-v2.py", line 574, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/arch/OSX-KVM/./fetch-macOS-v2.py", line 570, in main
    action_download(args)
  File "/home/arch/OSX-KVM/./fetch-macOS-v2.py", line 309, in action_download
    cnkpath = save_image(info[INFO_SIGN_LINK], info[INFO_SIGN_SESS], cnkname, args.outdir)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/arch/OSX-KVM/./fetch-macOS-v2.py", line 237, in save_image
    terminalsize = max(os.get_terminal_size().columns - TERMINAL_MARGIN, 0)
                       ^^^^^^^^^^^^^^^^^^^^^^
OSError: [Errno 25] Inappropriate ioctl for device
make: *** [Makefile:10: BaseSystem.dmg] Error 1
The command '/bin/bash -c make     && qemu-img convert BaseSystem.dmg -O qcow2 -p -c BaseSystem.img     && rm ./BaseSystem.dmg' returned a non-zero code: 2

@meatpioneer
Copy link

need help idk what is this just need macos ventura working in docker

Saving http://oscdn.apple.com/content/downloads/28/14/042-23155/4rscm4lvp3084gutfgpkwj5eex0yyxmzkt/RecoveryImage/BaseSystem.chunklist to ./BaseSystem.chunklist...
Traceback (most recent call last):
  File "/home/arch/OSX-KVM/./fetch-macOS-v2.py", line 574, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/arch/OSX-KVM/./fetch-macOS-v2.py", line 570, in main
    action_download(args)
  File "/home/arch/OSX-KVM/./fetch-macOS-v2.py", line 309, in action_download
    cnkpath = save_image(info[INFO_SIGN_LINK], info[INFO_SIGN_SESS], cnkname, args.outdir)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/arch/OSX-KVM/./fetch-macOS-v2.py", line 237, in save_image
    terminalsize = max(os.get_terminal_size().columns - TERMINAL_MARGIN, 0)
                       ^^^^^^^^^^^^^^^^^^^^^^
OSError: [Errno 25] Inappropriate ioctl for device
make: *** [Makefile:10: BaseSystem.dmg] Error 1
The command '/bin/bash -c make     && qemu-img convert BaseSystem.dmg -O qcow2 -p -c BaseSystem.img     && rm ./BaseSystem.dmg' returned a non-zero code: 2

also having this issue

@MrCharry
Copy link

Thank you @criandoideiasoficial, that indeed helped. Then what to do with this message? What am I missing now?

image

How did you do? I also got the msg: "error: RPC failed; curl 92 HTTP/2 stream 5 was not closed cleanly: CANCEL (err 8)
error: 930 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output", appreciate for your reply.

@deadlinecode
Copy link

deadlinecode commented Sep 26, 2024

If you get the Inappropriate ioctl for device just do the following:

  • Open the file Dockerfile
  • Search for the line that says
    RUN make \
      && qemu-img convert BaseSystem.dmg -O qcow2 -p -c BaseSystem.img \
      && rm ./BaseSystem.dmg
  • Insert following above the found line
    RUN sed -i -e 's/os.get_terminal_size().columns/80/g' /home/arch/OSX-KVM/./fetch-macOS-v2.py

Thats it
(fyi: @meatpioneer , @Harsh-007-max )

@meatpioneer
Copy link

error
Stuck here

@Harsh-007-max
Copy link

Harsh-007-max commented Sep 27, 2024

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'
registry.cn-hangzhou.aliyuncs.com/shrimp-images/docker-osx:ventura
i ran this command and got an error

docker: Error response from daemon: error gathering device information while adding custom device "/dev/kvm": no such file or directory.

does anyone know how to solve this one

@dudebloke
Copy link

I think they might've taken it down again

@reavpC6K
Copy link

reavpC6K commented Oct 9, 2024

Rather than relying on pirate images hosted on public registries I think the right way is to let the user set an environment variable to fetch their desired version, convert and install it per OSX-KVM.

@shunia
Copy link

shunia commented Oct 16, 2024

By following the exact steps provided by @alejoluc, I'm able to enter the installation screen, but then stuck here:
{9BAF92B8-63EA-437B-9B8E-B6254628E0C1}

I'm looking for fixes to solve this but the solution definitely works, but logs when excuting docker run -it --name docker-osx --device /dev/kvm -p 50922:10022 -v /tmp/.X11-unix:/tmp/.X11-unix -e "DISPLAY=${DISPLAY}" sickcodes/docker-osx:ventura is a little bit confusing when it default to sonoma rather than the provided ventura:

No BaseSystem.img available, downloading sonoma
./fetch-macOS-v2.py --shortname=sonoma
1. High Sierra (10.13)
2. Mojave (10.14)
3. Catalina (10.15)
4. Big Sur (11.7)
5. Monterey (12.6)
6. Ventura (13) - RECOMMENDED
7. Sonoma (14) 
8. Sequoia (15) 
Downloading 696-08090...

@rishicodelux
Copy link

anyone found the solution for this disk lock issue

` By following the exact steps provided by @alejoluc, I'm able to enter the installation screen, but then stuck here:
{9BAF92B8-63EA-437B-9B8E-B6254628E0C1}

I'm looking for fixes to solve this but the solution definitely works, but logs when excuting docker run -it --name docker-osx --device /dev/kvm -p 50922:10022 -v /tmp/.X11-unix:/tmp/.X11-unix -e "DISPLAY=${DISPLAY}" sickcodes/docker-osx:ventura is a little bit confusing when it default to sonoma rather than the provided ventura:

No BaseSystem.img available, downloading sonoma
./fetch-macOS-v2.py --shortname=sonoma
1. High Sierra (10.13)
2. Mojave (10.14)
3. Catalina (10.15)
4. Big Sur (11.7)
5. Monterey (12.6)
6. Ventura (13) - RECOMMENDED
7. Sonoma (14) 
8. Sequoia (15) 
Downloading 696-08090...

Originally posted by @shunia in #799 (comment)
`

@mpdavison
Copy link

This might help you, @rishicodelux and @shunia:

In addition to @alejoluc's steps, I followed these additional installation steps (erase a disk), and I was then able to select the disk to install to.

@Sephrael
Copy link

Sephrael commented Oct 21, 2024

anyone found the solution for this disk lock issue

Delete the ~240gb hard drive with disk utility as described above

I'm looking for fixes to solve this but the solution definitely works, but logs when excuting docker run -it --name docker-osx --device /dev/kvm -p 50922:10022 -v /tmp/.X11-unix:/tmp/.X11-unix -e "DISPLAY=${DISPLAY}" sickcodes/docker-osx:ventura is a little bit confusing when it default to sonoma rather than the provided ventura:

No BaseSystem.img available, downloading sonoma
./fetch-macOS-v2.py --shortname=sonoma
1. High Sierra (10.13)
2. Mojave (10.14)
3. Catalina (10.15)
4. Big Sur (11.7)
5. Monterey (12.6)
6. Ventura (13) - RECOMMENDED
7. Sonoma (14) 
8. Sequoia (15) 
Downloading 696-08090...

Originally posted by @shunia in #799 (comment) `

It took me a while to troubleshoot this, but following the advice on the thread was able to get bluebubbles/AirMessage up and working on VM of Ventura.

Follow alejoluc's instructions INCLUDING using a Ubuntu-20.04 build on WSL. The default install of WSL is a higher version and doesn't let you install QEMU properly and didn't work for me. It looks like this command should install Ventura instead of defaulting to Sonoma. I had to change the port because I was having issues with the one he had set, don't think it makes a difference.
docker run -it --device /dev/kvm -p 52922:10022 -v /tmp/.X11-unix:/tmp/.X11-unix -e "DISPLAY=${DISPLAY}" -e "SHORTNAME=ventura" sickcodes/docker-osx:ventura

I followed the advice of kftof since I have an AMD processor and added in these arguments. Not sure if it's necessary.
docker run -it --device /dev/kvm -p 50922:10022 -v /tmp/.X11-unix:/tmp/.X11-unix -e "DISPLAY=${DISPLAY}" -e CPU='Haswell-noTSX' -e CPUID_FLAGS='kvm=on,vendor=GenuineIntel,+invtsc,vmware-cpuid-freq=on' -e SHORTNAME=ventura sickcodes/docker-osx:ventura

I might just be dumb, but after the install and everything I was expecting to boot straight into the OS rather than the boot menu so I didn't actually think it worked at first. I had a screen that looked like this--
Screenshot 2024-10-21 at 11 37 27 AM

It took me a while to realize I could just select the Ventura2 HDD to boot up. Stupid me! 😅

I've been able to restart/shutdown and boot up again without needing to do anything more, so I'm happy. I thought I would have to do a little more customization to get the serial keys generated for iCloud authentication but it seems like that was taken care of automatically. Hope this helps others, good luck!

@ismael221
Copy link

Thanks bro now it works for me, but I have one question, is it possible to increase the RAM of Ventura? it uses 8gb from my host machine but on the Mac settings it shows as 4gbs, so I'm not able to use the virtual device emulator from Android Studio on it.

@zryyyy
Copy link

zryyyy commented Oct 23, 2024

Is anyone else having the same problem as me? Or can anyone tell me what the cause of this problem is?🥺I tried to change the mirror source but it doesn't work.

 ~/Docker-OSX on  master                                        2m43s
 docker build -t sickcodes/docker-osx:sonoma --build-arg SHORTNAME=sonoma .
[+] Building 36.1s (8/29)                                 docker:default
 => [internal] load build definition from Dockerfile                0.0s
 => => transferring dockerfile: 18.04kB                             0.0s
 => [internal] load metadata for docker.io/library/archlinux:base-  2.4s
 => [auth] library/archlinux:pull token for registry-1.docker.io    0.0s
 => [internal] load .dockerignore                                   0.0s
 => => transferring context: 2B                                     0.0s
 => [ 1/25] FROM docker.io/library/archlinux:base-devel@sha256:f49  0.0s
 => CACHED [ 2/25] RUN perl -i -p -e s/^\#Color/Color$'\n'Parallel  0.0s
 => CACHED [ 3/25] RUN tee /etc/pacman.d/mirrorlist <<< 'Server =   0.0s
 => ERROR [ 4/25] RUN pacman -Sy archlinux-keyring --noconfirm     33.6s
------
 > [ 4/25] RUN pacman -Sy archlinux-keyring --noconfirm     && rm -rf /etc/pacman.d/gnupg     && pacman-key --init     && pacman-key --populate archlinux:
0.329 :: Synchronizing package databases...
33.58 error: failed retrieving file 'extra.db' from geo.mirror.pkgbuild.com : Connection time-out
33.58 error: failed retrieving file 'core.db' from geo.mirror.pkgbuild.com : Connection time-out
33.58 error: failed retrieving file 'core.db' from mirror.rackspace.com : Connection time-out
33.58 error: failed retrieving file 'extra.db' from mirror.rackspace.com : Connection time-out
33.58 error: failed retrieving file 'core.db' from mirror.rackspace.com : Connection time-out
33.58 warning: too many errors from mirror.rackspace.com, skipping for the remainder of this transaction
33.58 error: failed retrieving file 'extra.db' from mirror.rackspace.com : Connection time-out
33.58 error: failed to synchronize all databases (download library error)
33.58  core downloading...
33.58  extra downloading...
------
Dockerfile:77
--------------------
  76 |     # Fixes issue with invalid GPG keys: update the archlinux-keyring package to get the latest keys, then remove and regenerate gnupg keys
  77 | >>> RUN pacman -Sy archlinux-keyring --noconfirm \
  78 | >>>     && rm -rf /etc/pacman.d/gnupg \
  79 | >>>     && pacman-key --init \
  80 | >>>     && pacman-key --populate archlinux
  81 |
--------------------
ERROR: failed to solve: process "/bin/bash -c pacman -Sy archlinux-keyring --noconfirm     && rm -rf /etc/pacman.d/gnupg     && pacman-key --init     && pacman-key --populate archlinux" did not complete successfully: exit code: 1

The error reported above was generated when I compiled on wsl, but it compiled perfectly fine when I used github codespaces.🤯

If anyone is also having problems compiling the image, maybe you could try my method below.

Create a new github codespace

Go to Codespaces and create a new github codespace

Init and update submodule

You need to init and update the submodule using the following command

git submodule init
git submodule update

Update apt and install Docker

  1. Update package index
sudo apt-get update
  1. Install dependency packages
sudo apt-get install \
    apt-transport-https \
    ca-certificates \
    curl \
    software-properties-common
  1. Add official Docker GPG key
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
  1. Set Docker repo
sudo add-apt-repository \
   "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
   $(lsb_release -cs) \
   stable"
  1. Update package index again
sudo apt-get update
  1. Install Docker CE
sudo apt-get install docker-ce
  1. Verify the Installation
sudo docker --version

Build image

docker build -t sickcodes/docker-osx:latest --build-arg SHORTNAME=sonoma .

Save the image

docker save -o docker-osx.tar sickcodes/docker-osx:latest

Then you can download the image to your own machine

If you want to load the image, just type the command below

docker load -i /path/to/destination/docker-osx.tar

@mdurini-swisscom
Copy link

my two cents....maybe an update to the README will be helpful...

@czzt1
Copy link

czzt1 commented Oct 27, 2024

Is anyone else having the same problem as me? Or can anyone tell me what the cause of this problem is?🥺I tried to change the mirror source but it doesn't work.

 ~/Docker-OSX on  master                                        2m43s
 docker build -t sickcodes/docker-osx:sonoma --build-arg SHORTNAME=sonoma .
[+] Building 36.1s (8/29)                                 docker:default
 => [internal] load build definition from Dockerfile                0.0s
 => => transferring dockerfile: 18.04kB                             0.0s
 => [internal] load metadata for docker.io/library/archlinux:base-  2.4s
 => [auth] library/archlinux:pull token for registry-1.docker.io    0.0s
 => [internal] load .dockerignore                                   0.0s
 => => transferring context: 2B                                     0.0s
 => [ 1/25] FROM docker.io/library/archlinux:base-devel@sha256:f49  0.0s
 => CACHED [ 2/25] RUN perl -i -p -e s/^\#Color/Color$'\n'Parallel  0.0s
 => CACHED [ 3/25] RUN tee /etc/pacman.d/mirrorlist <<< 'Server =   0.0s
 => ERROR [ 4/25] RUN pacman -Sy archlinux-keyring --noconfirm     33.6s
------
 > [ 4/25] RUN pacman -Sy archlinux-keyring --noconfirm     && rm -rf /etc/pacman.d/gnupg     && pacman-key --init     && pacman-key --populate archlinux:
0.329 :: Synchronizing package databases...
33.58 error: failed retrieving file 'extra.db' from geo.mirror.pkgbuild.com : Connection time-out
33.58 error: failed retrieving file 'core.db' from geo.mirror.pkgbuild.com : Connection time-out
33.58 error: failed retrieving file 'core.db' from mirror.rackspace.com : Connection time-out
33.58 error: failed retrieving file 'extra.db' from mirror.rackspace.com : Connection time-out
33.58 error: failed retrieving file 'core.db' from mirror.rackspace.com : Connection time-out
33.58 warning: too many errors from mirror.rackspace.com, skipping for the remainder of this transaction
33.58 error: failed retrieving file 'extra.db' from mirror.rackspace.com : Connection time-out
33.58 error: failed to synchronize all databases (download library error)
33.58  core downloading...
33.58  extra downloading...
------
Dockerfile:77
--------------------
  76 |     # Fixes issue with invalid GPG keys: update the archlinux-keyring package to get the latest keys, then remove and regenerate gnupg keys
  77 | >>> RUN pacman -Sy archlinux-keyring --noconfirm \
  78 | >>>     && rm -rf /etc/pacman.d/gnupg \
  79 | >>>     && pacman-key --init \
  80 | >>>     && pacman-key --populate archlinux
  81 |
--------------------
ERROR: failed to solve: process "/bin/bash -c pacman -Sy archlinux-keyring --noconfirm     && rm -rf /etc/pacman.d/gnupg     && pacman-key --init     && pacman-key --populate archlinux" did not complete successfully: exit code: 1

The error reported above was generated when I compiled on wsl, but it compiled perfectly fine when I used github codespaces.🤯

If anyone is also having problems compiling the image, maybe you could try my method below.

Create a new github codespace

Go to Codespaces and create a new github codespace

Init and update submodule

You need to init and update the submodule using the following command

git submodule init
git submodule update

Update apt and install Docker

  1. Update package index
sudo apt-get update
  1. Install dependency packages
sudo apt-get install \
    apt-transport-https \
    ca-certificates \
    curl \
    software-properties-common
  1. Add official Docker GPG key
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
  1. Set Docker repo
sudo add-apt-repository \
   "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
   $(lsb_release -cs) \
   stable"
  1. Update package index again
sudo apt-get update
  1. Install Docker CE
sudo apt-get install docker-ce
  1. Verify the Installation
sudo docker --version

Build image

docker build -t sickcodes/docker-osx:latest --build-arg SHORTNAME=sonoma .

Save the image

docker save -o docker-osx.tar sickcodes/docker-osx:latest

Then you can download the image to your own machine

If you want to load the image, just type the command below

docker load -i /path/to/destination/docker-osx.tar

just edit dockefile,add :

ENV http_proxy=http://host:port
ENV https_proxy=http://host:port

set proxy

@sickcodes
Copy link
Owner

I will have the new DMCA compliant images uploaded shortly (merged #826), I am just asking Docker if they can unlock the old URL (sickcodes/docker-osx:latest) so that all previous tutorials, videos, articles, etc. have the correct URL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests