fix docker integration-cli restart test race

Docker-DCO-1.1-Signed-off-by: Erik Hollensbe <github@hollensbe.org> (github: erikh)
Merge pull request #7298 from erikh/fix_cli_restart_test

fix docker integration-cli restart test race