Docker fix timeout

Fix #963 

See #963  or commit messages for more details. 
Check level is fine: if it fails once, we don't want to try it anymore: we don't want to spend SOCKET_TIMEOUT == 5s while it is 99.9% sure that it will timeout again.