1. 带 X11 图形支持的启动(完整配置)
docker run -it \
--name sand \ # 容器名称
--restart=always \ # 自动重启策略
-v /tmp/.X11-unix:/tmp/.X11-unix \ # 挂载 X11 套接字
-e DISPLAY=$DISPLAY \ # 传递显示变量
-v $HOME/.Xauthority:/root/.Xauthority:ro \ # X11 认证文件
-e XAUTHORITY=/root/.Xauthority \ # 认证文件路径
ubuntu \ # 镜像名称
/bin/bash # 启动命令