Giter VIP home page Giter VIP logo

Comments (4)

jzimmek avatar jzimmek commented on September 26, 2024 1

@mapk0y using 127.0.0.1 instead of localhost works as expected for me as well. and is indeed a simple solution - thanks a lot!

from fluentd-docker-image.

repeatedly avatar repeatedly commented on September 26, 2024

Does anyone know the differences between normal run and swarm?
I don't have docker swarm experience, so I don't have a fix idea in mind...

from fluentd-docker-image.

mapk0y avatar mapk0y commented on September 26, 2024

I was also able to reproduce the same problem.
In my case "IPv6" had caused.

Not Swarm

[docker daemon] - (IPv6 localhost = ::1) -> [docker-proxy] - (IPv4) -> [fluentd container]

"docker-proxy" is userland TCP Proxy for localhost and hairpin NAT.
This also acts as Proxy between IPv6-IPv4.
Bind container ports to the host - Docker

Swarm

[docker daemon] - (IPv6 localhost = ::1) -> [NAT] -> [swarm load balancer] - [fluentd container]

This "NAT" is not likely support NAT64(IPv6 to IPv4), so packets have lost in "NAT".

There are some solutions

  1. To use "127.0.0.1" instead of "localhost". Simple!!
  2. Remove ::1 localhost ip6-localhost ip6-loopback from /etc/hosts.
  3. Disable IPv6 on Linux?

Not examined about Why "docker daemon" is to give priority to "IPv6".

from fluentd-docker-image.

repeatedly avatar repeatedly commented on September 26, 2024

Thanks @mapk0y !! Awesome answer 👍

from fluentd-docker-image.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.