Put a tag to loop and break the loop correctly

Docker-DCO-1.1-Signed-off-by: Kohei Tsuruta <coheyxyz@email.com>