Docker Set Up Client Only

建议点击 查看原文 查看最新内容。

原文链接: https://typonotes.com/posts/PostDate/PostName/

如果只想使用 docker / docker-compose 等命令工具控制远端服务上的 docker-engine。

MacOS

  1. 下载 docker-cli

https://docs.docker.com/engine/install/binaries/#install-client-binaries-on-macos

1
wget -c https://download.docker.com/mac/static/stable/aarch64/docker-27.3.1.tgz
  1. 下载 docker-compose

https://github.com/docker/compose/releases

1
wget -c https://github.com/docker/compose/releases/download/v2.30.3/docker-compose-darwin-aarch64

Usage

1
2
3
export DOCKER_HOST=ssh://remote-host

docker ps