This commit is contained in:
mei
2025-02-06 09:49:44 +08:00
parent dce5898996
commit e53a72f6aa
6 changed files with 88 additions and 43 deletions
+13 -1
View File
@@ -11,31 +11,41 @@ permalink: /articles/2024/docker-osx/index.html
date: 2024-08-11 10:48:59
---
## 准备工作
1. 检查 KVM 支持
```bash
ls /dev/kvm
```
如果没有任何内容,表示系统不支持KVM,如果支持,它会输出这样的内容:
```bash
root@mei-pc:/home/mei# ls /dev/kvm
/dev/kvm
root@mei-pc:/home/mei#
```
1. 安装 Docker
建议使用 [LinuxMirrors](https://linuxmirrors.cn/other/) 提供的脚本来安装并配置镜像加速
1. 创建系统盘
使用 qemu-img 创建系统盘
```bash
apt install qemu-utils
qemu-img create -f qcow2 -o size=120G /<你希望使用的系统盘目录>/<你的系统磁盘名称>.img
```
## 启动 Docker 容器
1. 下载x11-apps,用来显示图形界(Docker-OSX要求的)
```bash
apt install x11-apps
```
1. 启动
```bash
docker run -it \
--device /dev/kvm \
@@ -52,6 +62,8 @@ docker run -it \
-e EXTRA="-display none -vnc 0.0.0.0:99,password=on" \
sickcodes/docker-osx:latest
```
### 参考资料
[Docker-OSX](https://github.com/sickcodes/Docker-OSX)
[体验Windows11上安装Docker-OSX系统](https://www.ruterfu.com/2021/11/24/20211124-dockerosx-windows11/)
[体验Windows11上安装Docker-OSX系统](https://www.ruterfu.com/2021/11/24/20211124-dockerosx-windows11/)
+11
View File
@@ -0,0 +1,11 @@
---
title: 开放式?入耳式?
tags:
-
categories:
-
index_img: /img/2024/
banner_img: /img/2024/
permalink: /articles/2025/earphone.html
date: 2025-02-11 10:48:59
---
-1
View File
@@ -1 +0,0 @@
https://www.sysgeek.cn/ubuntu-wine/