为了测试可以使用 colima 这样可以不用安装 docker desktop
# 安装 colima
brew install colima
# 安装 docker compose
brew install docker-compose
# 启动
colima start
# 停止
colima stop
# 或是定义一个 pwsh 函数
function start-docker {
& colima start `
--env HTTP_PROXY="http://192.168.0.1:8080" `
--env HTTPS_PROXY="http://192.168.0.1:8080" `
--env http_proxy="http://192.168.0.1:8080" `
--env https_proxy="http://192.168.0.1:8080"
}
function stop-docker {
& colima stop
}
# gui 工具
lazydocker