命令行 docker run -it --rm -e DISPLAY=host.docker.internal:0.0 ubuntu Dockerfile ENV DISPLAY=host.docker.internal:0.0 注意:只适用于windows docker desktop