Cannot bind IP to network

I have an oracle docker up and running. By default it runs on localhost:8080 and localhost:1521.
I want it to run it on a specific IP like 192.168.56.50:8080 and so on.

So I created a external bridge network and trying to bind the IP but it does not work. I get below error.

Cannot start service oracle: driver failed programming external connectivity on endpoint oracle.local (4d8268bc0f46d35566dbb8ff5d4b8c92e69525b81e572d17ec8c1b58876e9d4e): Error starting userland proxy: listen tcp 192.168.56.50:8080: bind: cannot assign requested address

I have used VirtualBox previously which has VirtualBox-Host Only adapter with that IP. I have enabled Hyper-V and want to map that 192.68.56.50 to work with Hyper-V

My configuration:
Windows 10
Docker running Linux containers
Docker for Windows Community Edition v18.03.1-ce-win65 (17513) stable

Commands:
– To create network

  • docker network create
    –driver=bridge
    –subnet=192.168.56.0/24
    –gateway=192.168.56.1
    –opt “com.docker.network.bridge.name=oraclevm”
    –opt “com.docker.network.bridge.host_binding_ipv4=192.168.56.50”
    oraclevm

– docker-compose.yml

  • version: “2.1”
    services:
    oracle:
    container_name: “oracle.local”
    image: “sath89/oracle-12c:latest”
    ports:
    - “192.168.56.50:1521:1521”
    - “192.168.56.50:8080:8080”
    networks:
    oraclevm:
    ipv4_address: “192.168.56.50”
    networks:
    oraclevm:
    driver: bridge
    external: true
    ipam:
    driver: default
    config:
    - subnet: 192.168.56.0/24
    gateway: 192.168.56.1

– Docker image