我在运行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
1条答案
按热度按时间sg24os4d1#
遵循“手动安装插件”部分的说明对我很有效。在我安装到
ec2-user
用户并通过sudo docker compose version
进行测试之前-我必须按照安装到所有用户的说明进行操作。