在中国使用 Kamal Deploy 时,Docker pull 显示所有镜像超时

问题描述 投票:0回答:1

我可以使用 SSH 访问我们在中国的公司服务器。 (Ubuntu 24.04)

直到今天,我已经能够使用 Kamal Deploy 来部署我们的应用程序了。

现在我收到此错误:

docker stderr: error pulling image configuration: download failed after attempts=6: dial tcp 69.63.186.30:443: i/o timeout

没有任何镜像被拉取并且全部重试失败。

我可以在美国很好地部署或拉动,但不能在中国。这让我相信 docker 注册表最近在中国被屏蔽了。

如何远程部署该软件?我仍然可以访问 SSH。

docker great-firewall-of-china kamal
1个回答
0
投票

我的解决方案:

遵循此处的指导 https://github.com/basecamp/kamal/discussions/510#discussioncomment-7921108

在本地构建docker镜像,然后使用SFTP上传到服务器。 手动删除旧的 docker 容器,然后运行

kamal deploy

© www.soinside.com 2019 - 2024. All rights reserved.