允许SSH连上OSX
docker run \
--device /dev/kvm \
--device /dev/snd \
-e RAM=4 \
-p 50922:10022 \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-e "DISPLAY=${DISPLAY:-:0.0}" \
sickcodes/docker-osx:latest
使用VNC可视化操作
https://github.com/sickcodes/Docker-OSX/blob/master/vnc-version/Dockerfile
构建命令:docker build -t docker-osx-vnc
docker run --device dev/kvm --device dev/snd -p 8888:5999 -p 50922:10022 -d --privileged docker-osx-vnc:latest
本地VNC连接:localhost:8888
远程连接:remotehost:8888
links:
https://z.itpub.net/article/detail/40860F47B2F401C3307952AB1CC67BCC