Checked docker validation status code.

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