mirror of
https://github.com/sickcodes/Docker-OSX.git
synced 2026-01-14 15:43:32 +01:00
Failed to connect to raw.githubusercontent.com port 443 after 6 ms: Couldn't connect to server #622
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @wxp0821 on GitHub (Oct 30, 2024).
this isssue is caused by
-e MASTER_PLIST_URL='https://raw.githubusercontent.com/sickcodes/osx-serial-generator/master/config-custom.plist'
can the file config-custom.plist be aquired by local flask request? I tried to build a flask app. when I visit http://hellodocker:5000/config-custom.plist,I can get the file config-custom.plist. However, when I run docker-compose up --build -d, an error occurred
4 audio: Could not create a backend for voice adc'
2024-10-30 13:12:34 gtk initialization failed
docker-compose.yml
`services:
hellodocker:
image: hellodocker
container_name: hellodocker
ports:
- "5000:5000"
volumes:
- .:/hellodocker
restart: unless-stopped
networks:
- macos
docker-osx:
image: docker-osx:ventura
container_name: macos_ventura
ports:
- "50922:10022"
environment:
- DISPLAY=${DISPLAY:-:0.0}
- GENERATE_UNIQUE=true
- MASTER_PLIST_URL=http://hellodocker:5000/config-custom.plist
- SHORTNAME=ventura
volumes:
- /mnt/wslg/.X11-unix:/tmp/.X11-unix
devices:
- /dev/kvm
stdin_open: true
tty: true
networks:
- macos
networks:
macos:
driver: bridge
from flask import Flask, send_file
app = Flask(name)
visit_count = 0
@app.route('/')
def index():
global visit_count
visit_count += 1
return f" {visit_count} "
@app.route('/config-custom.plist')
def serve_plist():
return send_file('config-custom.plist', mimetype='application/xml')
if name == "main":
app.run(host='0.0.0.0', port=5000, debug=True)
OS related issued, please help us identify the issue by posting the output of this
uname -a
; echo "${DISPLAY}"
; echo 1 | sudo tee /sys/module/kvm/parameters/ignore_msrs
; grep NAME /etc/os-release
; df -h .
; qemu-system-x86_64 --version
; libvirtd --version
; free -mh
; nproc
; egrep -c '(svm|vmx)' /proc/cpuinfo
; ls -lha /dev/kvm
; ls -lha /tmp/.X11-unix/
; ps aux | grep dockerd
; docker ps | grep osx
; grep "docker|kvm|virt" /etc/group
@IamMattM commented on GitHub (Nov 19, 2024):
@wxp0821
I can see that you are also using docker-compose rather than the docker run commands listed in the github guides.
This is also my case and I have also faced the same issue as you with regards to pulling the `MASTER_PLIST_URL
The container uses curl and there is a specific way to make sure that it is "parsed" correctly.
You need to create a
.envfile in the samme location as the docker-osxdocker-compose.yml.The
.envfile should simply contain this line: (no quotes)MASTER_PLIST_URL=http://hellodocker:5000/config-custom.plistThe docker-compose.yml should be re-syntaxed like so:
- MASTER_PLIST_URL=${MASTER_PLIST_URL}Try it if you have not yet done so.
It worked for me.