I’ve installed Docker on a Windows 2022 Server via
Install-Module DockerMsftProvider -Force
Install-Package Docker -ProviderName DockerMsftProvider -Force
Restart-Computer -Force
I can pull a container (IIS on servercore)
docker pull Microsoft Artifact Registry
(this forum is changing the above, you can see it if you hover - it does work)
I can even launch the container, mapping the host port (8080) with the port on the container (80)
docker run -it -d -h windowsiiscontainer --name win_iis_cont_1 -p 8080:80 Microsoft Artifact Registry
The issue is I can’t hit localhost on 8080. We know the default docker IP space overlaps with something on our corporate network (we’ve had issues with this on our Linux docker systems for a while). This is our first venture into docker on Windows. I’m looking for the correct way to configure the docker engine to use a set IP space for the containers (as opposed to the default).
The way I have found online (\programdata\docker\config\daemon.json and default-address-pools) leaves me this error:
fatal: unable to configure the Docker daemon with file C:\ProgramData\docker\config\daemon.json: the following directives don’t match any configuration option: default-address-pools
Thx