macos安装docker
macos安装docker
orbstack
1
brew install orbstack
比官方的消耗的资源小
1
2
3
4
5
(base) 0 16:55:53 z:~ $docker ps
Cannot connect to the Docker daemon at unix:///Users/zhangzhiyuan/.orbstack/run/docker.sock. Is the docker daemon running?
(base) 0 16:55:54 z:~ $docker context show
orbstack
(base) 0 16:55:58 z:~ $
切换docker官方desktop
1
docker context use desktop-linux
##
Brew
brew reinstall docker
brew install –cask docker
brew uninstall docker
Cannot connect to the Docker daemon on macOS
docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?. See 'docker run --help'.
1
brew install --cask docker
Because docker is a system-level package, you cannot install it using
brew install
, and must use--cask
instead.
Colima
1
2
3
4
5
brew install colima
colima list
colima start
docker run xxx
colima stop
1
2
docker ps
docker context show
国内镜像下载
This post is licensed under CC BY 4.0 by the author.