在AWS Linux 2上安装Docker Compose v2

sr4lhrrt  于 2023-10-16  发布在  Docker
关注(0)|答案(1)|浏览(162)

我在运行aws Linux 2的r5.2xlarge上安装了docker。我试图安装docker compose v2没有用。
使用Docker Linux instructions
建立仓库
我应该为此选择哪个发行版?我尝试使用CentOS,但sudo yum install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin步骤对我来说失败了,

Errors during downloading metadata for repository 'docker-ce-stable':
  - Status code: 404 for https://download.docker.com/linux/centos/2023.2.20230920/x86_64/stable/repodata/repomd.xml (IP: 3.163.24.55)
Error: Failed to download metadata for repo 'docker-ce-stable': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
Ignoring repositories: docker-ce-stable
Last metadata expiration check: 2:45:33 ago on Sun Oct  1 22:27:32 2023.
No match for argument: docker-ce
No match for argument: docker-ce-cli
No match for argument: containerd.io
No match for argument: docker-buildx-plugin
No match for argument: docker-compose-plugin
Error: Unable to find a match: docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin

如果我正常地通过yum安装,然后继续使用sudo yum install docker-compose-plugin

Last metadata expiration check: 2:53:00 ago on Sun Oct  1 22:27:32 2023.
No match for argument: docker-compose-plugin
Error: Unable to find a match: docker-compose-plugin
sg24os4d

sg24os4d1#

遵循“手动安装插件”部分的说明对我很有效。在我安装到ec2-user用户并通过sudo docker compose version进行测试之前-我必须按照安装到所有用户的说明进行操作。

相关问题