Skip to content

Commit a6eeff3

Browse files
authored
Update 20241008_04.md
1 parent 32e3389 commit a6eeff3

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

202410/20241008_04.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,14 @@ docker run -d -it -P --shm-size=1g --cap-add=SYS_PTRACE --cap-add SYS_ADMIN --pr
5454
5555
# 进入容器
5656
docker exec -ti polardb_pg_devel bash
57-
```
57+
```
58+
59+
如果你的机器是apple arm架构芯片的机器, 想测试x86的环境, 可以pull和run容器时`--platform linux/amd64`指定架构:
60+
```
61+
docker pull --platform linux/amd64 registry.cn-hangzhou.aliyuncs.com/polardb_pg/polardb_pg_devel:ubuntu20.04
62+
63+
docker run -d -it --platform linux/amd64 -P --shm-size=1g --cap-add=SYS_PTRACE --cap-add SYS_ADMIN --privileged=true --name polardb_pg_devel registry.cn-hangzhou.aliyuncs.com/polardb_pg/polardb_pg_devel:ubuntu20.04 bash
64+
```
5865

5966
4、在容器中下载比赛分支代码
6067

0 commit comments

Comments
 (0)