Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

FROM ... AS <name> clarification

オープン 初心者向け
#26,212 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
1/5
見積もり時間
1時間未満
初心者へのやさしさ
88/100
issue の種類
ドキュメント
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
docker
領域
documentation

調査の方向性

Issue でリンクされている Dockerfile リファレンスページから始め、COPY --from=build を含む multi-stage build の例を見つけます。名前付きの stage と参照を比較し、その後、例の内部で参照先を明示的にして、レンダリングされたドキュメントが意図した構文を引き続き明確に説明していることを確認します。

索引モデルが issue の本文から書いたものです。

説明

status/triage
Is this a docs issue?
  • My issue is about the documentation content or website
Type of issue

Clarification

Description

The last line of the following example snippet may confuse some beginners:

FROM ubuntu AS base
RUN apt-get update && apt-get install -y shared-tooling

FROM base AS dev
RUN apt-get install -y dev-tooling

FROM base AS prod
COPY --from=build /app /app

as there is no named build stage in the snippet. I understand that it can merely be assumed such a stage exists, but since the prod stage is built from the base base image, it takes a second to comprehend there were merely omitted steps.

Location

https://docs.docker.com/reference/dockerfile/

Suggestion

Although a bit more verbose, it would perhaps be clearer to have something along the lines of:

FROM ubuntu AS base
RUN apt-get update && apt-get install -y shared-tooling
RUN mkdir /app && touch base.txt

FROM base AS dev
RUN apt-get install -y dev-tooling

FROM base AS prod
COPY --from=base /app /app

in which everything is explicit.

主要言語
Markdown
スター
4.7k
フォーク
8.5k
平均マージ
1日 21時間
マージ済み PR(30日)
119

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

docker/docs のほかの issue

docker/docs の issue をすべて見る

似ている issue

Documentation の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。