請教大神:Docker tag的命名規范是什么?官方檔案也只是告訴tag做什么用,但未提及它的命名規范,我知道中文名字是不能做tag的。
uj5u.com熱心網友回復:
// Package reference provides a general type to represent any way of referencing images within the registry.// Its main purpose is to abstract tags and digests (content-addressable hash).
//
// Grammar
//
// reference := name [ ":" tag ] [ "@" digest ]
// name := [domain '/'] path-component ['/' path-component]*
// domain := domain-component ['.' domain-component]* [':' port-number]
// domain-component := /([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9])/
// port-number := /[0-9]+/
// path-component := alpha-numeric [separator alpha-numeric]*
// alpha-numeric := /[a-z0-9]+/
// separator := /[_.]|__|[-]*/
//
// tag := /[\w][\w.-]{0,127}/
//
// digest := digest-algorithm ":" digest-hex
// digest-algorithm := digest-algorithm-component [ digest-algorithm-separator digest-algorithm-component ]*
// digest-algorithm-separator := /[+.-_]/
// digest-algorithm-component := /[A-Za-z][A-Za-z0-9]*/
// digest-hex := /[0-9a-fA-F]{32,}/ ; At least 128 bit digest value
//
// identifier := /[a-f0-9]{64}/
// short-identifier := /[a-f0-9]{6,64}/
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/23959.html
標籤:Docker
上一篇:MySQL最全整理(面試題+筆記+導圖),面試大廠不再被MySql難倒!
下一篇:求解no matching manifest for unknown in the manifest list entries
