Losing connection with java.io.IOException: Unexpected termination of the channel after a few minutes

losing connection with java.io.IOException: Unexpected termination of the channel after a few minutes

This is happening randomley , temporarely solution is restarting docker , but we need permanent solution , can any one help us.