fix error on docker wait

Fixes #3440