When user passes an invalid tag to `docker build` (i.e. `docker build -t abcd:A0123456789B0123456789C0123456789 .`), check the tag first and terminate-early so user can specify the tag again Docker-DCO-1.1-Signed-off-by: Daniel, Dao Quang Minh <dqminh89@gmail.com> (github: dqminh) Upstream-commit: 8833d800bf622dcb6a66da0fe4c7a61a1620b62c Component: engine