In the case, you killed a Container and Docker still keeps the proxy port open. You can reset the proxy settings with these commands:

systemctl stop docker
rm -rf /var/lib/docker/network/files
systemctl start docker

Source: https://github.com/moby/moby/issues/25981