Launching a SaaS?·Collect waitlist signups before you build — before.run
SandboxPatternsDetectDocsChangelog
DevOps
#docker
#container
#image
#devops

Docker Image Name

Validates Docker image references including optional registry host, namespace, name, tag, and digest.

✓ CI/CD pipeline validation✓ Kubernetes manifest linting✓ Docker Compose file validation
/
/
Safe
Test String
6 matches
(?:…)?Non-capturing group— Non-capturing group — groups without capturing (no index assigned) — repeated zero or one time (optional) · ? — zero or one time (optional)
[…]Character class […]— Matches any single character listed in this set
[…]*Character class […]— Matches any single character listed in this set — repeated zero or more times (greedy) · * — zero or more times (greedy)
(?:…)?Non-capturing group— Non-capturing group — groups without capturing (no index assigned) — repeated zero or one time (optional) · ? — zero or one time (optional)
//— '/' — literal character
[…]Character class […]— Matches any single character listed in this set
a-za-z— a-z — range from 'a' to 'z'
0-90-9— 0-9 — range from '0' to '9'
[…]*Character class […]— Matches any single character listed in this set — repeated zero or more times (greedy) · * — zero or more times (greedy)
a-za-z— a-z — range from 'a' to 'z'
0-90-9— 0-9 — range from '0' to '9'
..— '.' — literal character
__— '_' — literal character
\-\-— \- — escaped character
(?:…)*Non-capturing group— Non-capturing group — groups without capturing (no index assigned) — repeated zero or more times (greedy) · * — zero or more times (greedy)
//— '/' — literal character
[…]+Character class […]— Matches any single character listed in this set — repeated one or more times (greedy) · + — one or more times (greedy)
(?:…)?Non-capturing group— Non-capturing group — groups without capturing (no index assigned) — repeated zero or one time (optional) · ? — zero or one time (optional)
::— ':' — literal character
[…]+Character class […]— Matches any single character listed in this set — repeated one or more times (greedy) · + — one or more times (greedy)
||— | — alternation: matches expression on left OR right
@@— '@' — literal character
ss— 's' — literal character
hh— 'h' — literal character
aa— 'a' — literal character
22— '2' — literal character
55— '5' — literal character
66— '6' — literal character
::— ':' — literal character
[…]{64}Character class […]— Matches any single character listed in this set — repeated exactly 64 times · {64} — exactly 64 times
Pattern: 121 charsInput: 130 chars
100% client-side · private

✓ Valid Examples

  • nginx
  • nginx:latest
  • nginx:1.25-alpine
  • myrepo/myimage:v1.0.0
  • ghcr.io/owner/repo:sha-abc1234
  • registry.example.com:5000/myimage:latest

✗ Invalid Examples

  • NGINX
  • my image
  • image:tag:extra

Usage & Integration

Validate Docker Image Name natively in your backend or frontend without copying regex strings.

Node / Edge

import { validate } from '@regexto/validators';

validate('docker-image', '...');

Python

from regexto_validators import validate

validate("docker-image", "...")

Go

import "github.com/regex-to/validators-go"

valid, err := validators.Validate("docker-image", "...")

PHP

use RegexTo\Validators\Validator;

Validator::validate('docker-image', '...');

Rust

use regexto_validators::validate;

let is_valid = validate("docker-image", "...").unwrap();