Valid docker container/image names

Valid container names are: [a-zA-Z0-9][a-zA-Z0-9_.-]
as pointed here

And probably the valid container names are

hostnameComponentRegexp = match((?:[a-z0-9]|[a-z0-9][a-z0-9-]*[a-z0-9]))

as pointed
here