package names

import "github.com/docker/cli/components/engine/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 = regexp.MustCompile(`^` + RestrictedNameChars + `+$`)

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

Source Files

names.go

Version
v17.12.0-ce-rc1+incompatible
Published
Dec 7, 2017
Platform
js/wasm
Imports
1 packages
Last checked
4 hours ago

Tools for package owners.