Docker 上下文类型(ECS),可能吗?

Docker context types (ECS), is it possible?

所以我正在尝试使用 Docker 上下文在 ECS 中无缝部署内容。

然而 here and here (docker context create ecs contextname) 中描述的命令不起作用。我安装的 docker 版本是最新的,手册显然不包含任何关于“上下文类型”或 ECS 的内容。

这样的文章是过时的还是超前的?真的不懂

你用的是什么“Docker”?云集成部分在最新版本的 Docker 桌面版中开箱即用(适用于 Mac 和 Windows)。不需要其他任何东西。

对于 Docker Linux 的引擎,您必须在 these steps 之后添加该支持。回购中有一个 Ubuntu 的脚本,这是我在 Amazon Linux 2 (on Cloud9) 上使用的自己的脚本:

# Source instructions: https://github.com/docker/compose-cli/blob/main/INSTALL.md 

# Grab the new docker binary
curl -L -O https://github.com/docker/compose-cli/releases/download/v1.0.17/docker-linux-amd64
mv docker-linux-amd64 docker
chmod +x docker

# Create a link to the old docker binary 
sudo ln -s /usr/bin/docker /usr/local/bin/com.docker.cli

# Check that it works with the new docker CLI
./docker --context default ps

# Move the new docker CLI to a directory in PATH (with precedence over the old CLI)
sudo mv docker /usr/local/bin/docker

# Reload the bash for changes to take effect 
bash

# Check the docker version 
docker version

我对集成的 Linux 版本玩得不多,我主要使用 Docker 桌面版本(这是我的建议)。