package names

import "github.com/docker/docker/daemon/names"

Index

Constants

const RestrictedNameChars = `[a-zA-Z0-9][a-zA-Z0-9_.-]`

RestrictedNameChars collects the characters allowed to represent a name, normally used to validate container and volume names.

Variables

var RestrictedNamePattern = lazyregexp.New(`^` + RestrictedNameChars + `+$`)

RestrictedNamePattern is a regular expression to validate names against the collection of restricted characters.

Source Files

names.go

Version
v28.0.2+incompatible
Published
Mar 18, 2025
Platform
js/wasm
Imports
1 packages
Last checked
3 minutes ago

Tools for package owners.