Docker Community Forums

Share and learn in the Docker community.

Giving Windows container a public IP

I am trying to give a Windows container an IP other then localhost (when I look in Docker Desktop for Windows), but without success.
image
Below is my current file, does anyone see what’s wrong?
docker-compose.yml

version: "2.4"
networks:
    public:
        driver: nat
        ipam:
            driver: windows
            config:
            - subnet: 192.168.10.0/24
services:
    publicsystem:
        build: ./PublicSystem
        networks:
            - public

Where did the edit button go? Is there some kind of limit to how many edits you can make? I was going to give the post a better title, the current one is maybe a bit unclear?

Accessing the Docker containers
On the host machine, go to the Docker working directory where you earlier deployed the Docker image package files (/mdm).
Run the Docker list command to get a list of all the Docker containers running in your system: docker container ls.
For terminal access, attach to each InfoSphere MDM Docker container, as needed.

Thanks again for your answer, but I don’t think that was what I was asking for. I want the container to show up in my network as it’s own device.

Is this possible on Windows? I have only seen Linux examples.