我可以使用 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。
我的解决方案:
遵循此处的指导 https://github.com/basecamp/kamal/discussions/510#discussioncomment-7921108
在本地构建docker镜像,然后使用SFTP上传到服务器。 手动删除旧的 docker 容器,然后运行
kamal deploy