Construct the docker client only once and cache it afterwards