sudo nano /etc/docker/daemon.json Add the following configuration to disable IPv6 { "ipv6": false } After modifying the daemon.json file or disabling IPv6 on the host, restart the Docker service to apply the changes sudo systemctl restart docker