Get the container exit code from docker not Popen