menu

Flyio

Talk about Fly.io's product Global Application Platform - Support and operational questions should go to [email protected]

Channels
Team

Deploy local image

April 17, 2020 at 6:13am

Deploy local image

April 17, 2020 at 6:13am
I'm using Docker Toolbox on Mac. Perhaps this is the problem. But in any case,
flyctl deploy -i mycoolsite:latest
Returns
==> Validating app configuration
--> done
Services
TCP 80/443 ⇢ 8080
Error Unable to access image mycoolsite:latest: 401 Unauthorized
So it seems it does not find this local image and tries to load it from elsewhere? Or perhaps flyctl can't access local images because it needs some docker certs/credentials to access the virtual machine?

April 17, 2020 at 11:28am
Using Docker Desktop doesn't seem to fix this
  • reply
  • like
So I guess flyctl is trying to get an image from the default docker registry. Can I tell it how to get things from a private container registry?
  • reply
  • like
you can't deploy from a local or private registry exactly, there's an open issue about that here: https://github.com/superfly/flyctl/issues/58
  • reply
  • like
there's a way to tag + push your local image, then deploy from that here: https://github.com/superfly/flyctl/issues/104#issuecomment-614973806
  • reply
  • like
for context, the reason this is a little limited is we sync images to our registry, we don't trust other registries to be available when we need to pull images
  • reply
  • like
private
This channel has been archived