ミュータブルタグとは?
ミュータブルタグは、最初に作成された後に異なるコンテンツに再ポイントできるregistryのタグです。典型的な例はlatestで、これは最新のbuildが何であれそこへ移動されます。ミュータブルタグは動く標的を追跡するのに便利ですが、タグの背後にあるコンテンツを予測不可能にします。
なぜ重要か
ミュータブルタグは知らないうちに変わる可能性があるため、同じタグを2回pullすると異なるイメージが返されることがあり、これは再現性を壊し、ロールバックを複雑にします。デプロイには、イミュータブルタグまたは固定されたdigestを優先してください。latestのようなミュータブルタグは、本番の参照ではなく、開発での利便性のために取っておいてください。
関連する概念
- latestは典型的なミュータブルタグ
- pullは時間の経過とともに異なるコンテンツを返すことがある
- ミュータブルタグ付きイメージを安全にデプロイするにはdigestに固定する
関連ガイド
What Is an Immutable Tag?An immutable tag is a container or artifact tag that can never be reassigned after it is first pushed, guaran…
What Is a Pinned Digest?A pinned digest references a dependency or image by its exact content hash instead of a tag, guaranteeing you…
What Is an Image Digest?An image digest is a cryptographic hash that uniquely and immutably identifies the exact contents of a contai…