Fixed rebuilding docker containers

Change-Id: Id749943fa27573365f276565a8a23f8e7f6917d3
Closes-bug: 1395761