# Docker windows ipv6 issue

**URL:** <https://forums.docker.com/t/docker-windows-ipv6-issue/133555>\
**Category:** Docker Desktop\
**Tags:** windows\
**Created:** [December 29, 2022, 2:55pm UTC](https://forums.docker.com/t/docker-windows-ipv6-issue/133555 "2022-12-29T14:55:00Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![techdevsmx](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/techdevsmx/32/32611_2.png) [@techdevsmx](https://forums.docker.com/u/techdevsmx)\
**Post date:** [December 29, 2022, 2:55pm UTC](https://forums.docker.com/t/docker-windows-ipv6-issue/133555/1 "2022-12-29T14:55:00Z")

</div>

Hello! I have a question about disabling ipv6 in docker container on windows. Is it possible? Even I create network without ipv6 support (while I inspecting network it strictly says ‘“EnableIPv6”: false’ and also ipv6 disabled everywhere in guest OS network adapters) but container still using ipv6.

Im using Docker Desktop for Windows 4.13, container working on base image of MS windows server core ltsc 2022.

---

<div class="post-metadata">

**Author:** ![viczdigital](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/viczdigital/32/38518_2.png) [@viczdigital](https://forums.docker.com/u/viczdigital)\
**Post date:** [January 12, 2023, 6:29pm UTC](https://forums.docker.com/t/docker-windows-ipv6-issue/133555/2 "2023-01-12T18:29:55Z")

</div>

Yes, it is possible to disable IPv6 in a Docker container running on Windows. However, it can be a bit more complex than disabling it on a Linux host.

One way to disable IPv6 within a container is to use the `netsh` command to disable it in the guest OS. You can do this by adding the following command to your Dockerfile:

```auto
RUN netsh interface ipv6 set interface "Local Area Connection" admin=disable

```

This command disables IPv6 on the “Local Area Connection” network adapter. You may need to modify the command to match the specific name of the network adapter you are using.

Another way to disable IPv6 in the container is to disable it in the host system and make sure that the container inherits the host’s network settings. You can do this by adding the following command in your docker-compose file:

```auto
networks:
  default:
    ipv6: false

```

Please note that even after disabling IPv6 in the container, some applications may still try to use it, so you may need to modify their configuration or use a different version of the application that does not rely on IPv6.

Also, if you’re using Docker Desktop for Windows 4.13, it uses Hyper-V isolation to run the containers and it can be possible that the IPv6 is enabled on the virtual switch used by the Hyper-V. So you should also check the virtual switch properties and confirm that the IPv6 is disabled.

---

<div class="post-metadata">

**Author:** ![techdevsmx](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/techdevsmx/32/32611_2.png) [@techdevsmx](https://forums.docker.com/u/techdevsmx)\
**Post date:** [January 13, 2023, 7:48am UTC](https://forums.docker.com/t/docker-windows-ipv6-issue/133555/3 "2023-01-13T07:48:07Z")

</div>

> [@viczdigital](#):
>
> `netsh interface ipv6 set interface "Local Area Connection" admin=disable`

Thank you for answer but it doesnt help. I ran your command from inside of container, below the screen with errors

 ![image](https://global.discourse-cdn.com/docker/original/3X/6/7/67f61f345e6fc3c002b06a2ca5257d95946d9f84.png)

---

<div class="post-metadata">

**Author:** ![viczdigital](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/viczdigital/32/38518_2.png) [@viczdigital](https://forums.docker.com/u/viczdigital)\
**Post date:** [January 13, 2023, 8:08pm UTC](https://forums.docker.com/t/docker-windows-ipv6-issue/133555/4 "2023-01-13T20:08:39Z")

</div>

Can you try to run the following commands;

```auto
netsh interface teredo set state disabled
netsh interface ipv6 6to4 set state state=disabled undoonstop=disabled
netsh interface ipv6 isatap set state state=disabled

```

---

<div class="post-metadata">

**Author:** ![techdevsmx](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/techdevsmx/32/32611_2.png) [@techdevsmx](https://forums.docker.com/u/techdevsmx)\
**Post date:** [January 19, 2023, 3:00pm UTC](https://forums.docker.com/t/docker-windows-ipv6-issue/133555/5 "2023-01-19T15:00:41Z")

</div>

> [@viczdigital](#):
>
> `netsh interface ipv6 isatap set state state=disabled`

Seems like ipv6 still working  
 ![image](https://global.discourse-cdn.com/docker/original/3X/c/6/c6ed5cb73fbc3bd672a991a0e4371dccf5d4878f.png)

---

<div class="post-metadata">

**Author:** ![pplmx](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/pplmx/32/40687_2.png) [@pplmx](https://forums.docker.com/u/pplmx)\
**Post date:** [May 13, 2023, 3:32pm UTC](https://forums.docker.com/t/docker-windows-ipv6-issue/133555/6 "2023-05-13T15:32:22Z")

</div>

Sorry, it seems that docker doesn’t support IPv6 for Docker for Windows. [The documentation is here.](https://docs.docker.com/config/daemon/ipv6/)

---

<div class="post-metadata">

**Author:** ![rimelek](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/rimelek/32/41602_2.png) [@rimelek](https://forums.docker.com/u/rimelek)\
**Post date:** [May 14, 2023, 10:08am UTC](https://forums.docker.com/t/docker-windows-ipv6-issue/133555/7 "2023-05-14T10:08:09Z")

</div>

> [@pplmx](#):
>
> docker doesn’t support IPv6 for Docker for Windows

True, but the question was not about trying to use IPv6 but trying to disable it. I only saw a Link Local IP address which might not be affected in a container by the settings suggested in this topic. Unfortunately I don’t use Windows containers enough to understand the reason and help.
