How to use Docker Remote API to assign a static IP address to a container

When I use Docker Remote API to create a container, I don’t know how to assign a IP address because I don’t find the parameter about it.So how can I use Docker Remote API to create a container with a static IP address?

My Docker Server&Client version is 1.10.3, and API version is 1.22

  • Gitlab behind HAProxy with ssl termination
  • Tensorflow linear classifier. I can't run it on Docker
  • Docker-compose: get linked container adress inside other container (in bash)
  • Upgrade docker container as part of docker-compose
  • Access host XServer from Docker container
  • Starting Docker-Engine on boot
  • EF Core migrations using asp.net core, SQL Server and Docker yields dotnet SDK error
  • Docker Compose - Command using Container Environment Variable
  • Running tests with Docker and Jenkins - Test Result
  • How to assign as static port to a container?
  • Docker failed to initialize
  • Bluemix Unable to connect or ping to container
  • One Solution collect form web for “How to use Docker Remote API to assign a static IP address to a container”

    This API will let you set a V4 and/or V6 static IP

    POST /networks/(id)/connect

    https://docs.docker.com/engine/reference/api/docker_remote_api/#v1-22-api-changes

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.