heroku 错误:无法从源获取映像或生成:生成错误:无法使用前端Docker解决

0ve6wy6x  于 2022-11-13  发布在  Docker
关注(0)|答案(1)|浏览(138)

我正在尝试将我的网站从heroku部署到fly.io
当我进行飞行部署时,我得到了这个错误

Error failed to fetch an image or build from source: error building: failed to solve with frontend dockerfile.v0: failed to solve with frontend gateway.v0: rpc error: code = Unknown desc = quay.io/evl.ms/fullstaq-ruby:2.6.1-jemalloc-slim: not found

fly.toml文件

# fly.toml file generated for ancient-tree-3915 on 2022-09-22T15:00:52-07:00

app = "ancient-tree-3915"
kill_signal = "SIGINT"
kill_timeout = 5
processes = []

[build]
  [build.args]
    BUILD_COMMAND = "bin/rails fly:build"
    SERVER_COMMAND = "bin/rails fly:server"

[deploy]
  release_command = "bin/rails fly:release"

[env]
  PORT = "8080"

[experimental]
  allowed_public_ports = []
  auto_rollback = true

[[services]]
  http_checks = []
  internal_port = 8080
  processes = ["app"]
  protocol = "tcp"
  script_checks = []
  [services.concurrency]
    hard_limit = 25
    soft_limit = 20
    type = "connections"

  [[services.ports]]
    force_https = true
    handlers = ["http"]
    port = 80

  [[services.ports]]
    handlers = ["tls", "http"]
    port = 443

  [[services.tcp_checks]]
    grace_period = "1s"
    interval = "15s"
    restart_limit = 0
    timeout = "2s"

[[statics]]
  guest_path = "/app/public"
  url_prefix = "/"

有什么解决办法吗?

gkl3eglg

gkl3eglg1#

这个quay.io/evl.ms/fullstaq-ruby:2.6.1-jemalloc-slim图像(可能用在你的Dockerfile的FROM子句中)并不存在。你自己检查一下here

因此,www.example.com上可用的最低2.6.x标记quay.io是2.6.3-jemalloc-stretch-slim。可能,他们刚刚清除了旧的、不支持的版本。
请尝试升级到更新的版本。

相关问题