By default, fly deploy builds the image using a remote builder. If you have Docker running locally and want to build locally, then run fly deploy --local-only . Once your container is built, it’s deployed!
I confirm that --local-only works, but if you encounter “Error response from daemon: dockerfile parse error line XX: Unknown flag: link”, then you need to enable the BuildKit mode:
DOCKER_BUILDKIT=1 fly deploy --local-only
I hope that the remote build issue will be resolved soon.
Platform: machines
✓ Configuration is valid
→ Verified app config
==> Building image
WARN Failed to start remote builder heartbeat: server returned a non-200 status code: 500
Error: failed to fetch an image or build from source: error connecting to docker: server returned a non-200 status code: 500
thnx. i have destroyed the builder, then new builder was created on deploy. builder status changed from suspended to deployed.
the error on fly deploy has changed from: failed to fetch an image or build from source: error connecting to docker: server returned a non-200 status code: 500
to: failed to fetch an image or build from source: error connecting to docker: failed building options: failed probing “personal”: context deadline exceeded.
what can be done to fix this?
upd: it somehow has gone through. all rocking. everyone happy. thnx
upd2: so it did one deployment created 2 machines for the app, and on second deployment refused to update machines saying : reached maximum number of machines.
so i destroyed one machine (as i did previously to work around that issue)
but :
⠸ Updating …968 [app]
Error: failed to update VM …968: You have reached the maximum number of machines for this app.
Detroyed the apps, but still cannot deploy an app.
Error code:
WARN Failed to start remote builder heartbeat: failed building options: failed probing “personal”: context deadline exceeded.
Error: failed to fetch an image or build from the source: Failed to connect to Docker: failed build options: failed probing “personal”: context deadline exceeded.
apparently time helps with that. i mean it helped in my case, i experienced the same error over and over since i destroyed the builder and then after some time on another try it just did it.
so if there is a key, i’m unaware of it. i wrote to this topic tho, i fave a feeling it’s got some magic power that solves mysteries
Waiting and trying is not an option for me, there must be a solution for me and others who have the same problem.
I chose fly.io because the deploying is very comfortable for me, but if I can not provide a single app here for days, then I have to look for an alternative. Currently it is very frustrating.