0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Dockerfileのstage nameが読み込めない!

Posted at
ターミナル
docker build .

実行時に

ターミナル
failed to solve with frontend dockerfile.v0: failed to create LLB definition: failed to parse stage name "ruby:": invalid reference format

というエラーが発生しました。

そこでDockerfileを確認してみると、

Dockerfile
FROM ruby:$RUBY_VERSION

というふうにrubyのversionが書かれていなかったため、

Dockerfile
FROM ruby:3.02

と記述するとエラーが解消しました。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?