adjust HttpApiFunc arguments for docker engine