xcontainer 编译这个脚本: go build -o container sContainer.go 运行这个容器脚本: ./sContainer 这时就会进入容器的交互式 shell 环境,可以在里面执行各种命令。 要退出容器,在 shell 中输入 exit 即可。