pub fn valid_image_ref(s: &str) -> bool
True for a plausible local image reference: [A-Za-z0-9][A-Za-z0-9._/:@-]*. Rejects a leading - (it would be read as an option by docker), spaces and any shell or control character.
[A-Za-z0-9][A-Za-z0-9._/:@-]*
-
docker