Make docker request method a parameter.