Allow multiple colons for docker image.

Review: https://reviews.apache.org/r/24916