flyio使用的一些坑

首先,Windows环境安装 flyctl 需要用最新版的Power shell,否则pwsh命令不能用

务必使用最新版的Powershell

其次,真正创建App时,需要在 CMD 终端下运行,否则在 git bash 可能报错

$ fly launch --now
Creating app in D:\test\mslearn\python-hellofly-flask
Scanning source code
Detected a Python app
Using the following build configuration:
        Builder: paketobuildpacks/builder:base
? Choose an app name (leave blank to generate one): Error: Incorrect function.

使用fly deploy 部署,会报错

fly deploy
==> Verifying app config
Validating C:\Users\Administrator\feiflydemo\fly.toml
Platform: machines
✓ Configuration is valid
--> Verified app config
==> Building image
[33mWARN [0mFailed to start remote builder heartbeat: failed building options: failed probing "personal": context deadline exceeded
Error: failed to fetch an image or build from source: error connecting to docker: failed building options: failed probing "personal": context deadline exceeded

解决办法,输入如下命令

fly wireguard reset

参见: Eror "Failed to start remote builder heartbeat: failed building options: failed probing "personal": context deadline exceeded" - Questions / Help - Fly.io

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值