New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docker Swarm "OSError: [Errno 97] Address family not supported by protocol" #602
Comments
Maybe related to #596 Perhaps additional logic is required to handle binding to ipv6 correctly. |
Just tryed docker images from 1.5.0 to 1.5.5 : All versions run well with same environment, parameters, ... with no error, docker stack running well, container running ! So 1.5.6 (latest) image have different initialisation process that generate the error. |
In this case the host docker have ipv6 disabled, previous versions 1.5.5 and down to 1.5.0 work well, but 1.5.6 exit with then error. |
Hello, according to your docker-composer.yml file, which directory on the local machine is language models placed in |
@tjuzdy You are right, omitted correct declaration for the volume libretranslate_models But this volume declaration corrected, this dont change the problem, 1.5.6 stop with the same error, |
Just tried 1.5.7 : same error ... |
Try run this: Its worked for me in windows ( I modified run.bat ). In my case, its because docker don't support ipv6 |
Hello
Trying to run docker image of libretranslate in Docker Swarm environment
The Linux OS (Ubuntu 20.04.02 LTS) have ipv6 disabled
The docker version is :
When running libreTranslate image from docker hub we get this error :
We tried different configuration in docker compose file, with same result in any case
(docker swarm tell 127.0.0.1 ignored in ports value with this ports parameter)
Here is docker-compose.yml file used (base file, without the above settings)
We also tried to run the container as simple as possible in no swarm context (no docker stack deploy ... ) with same result :
docker run -ti --rm -p 5000:5000 libretranslate/libretranslate --load-only en,fr
Seems the container try to bind to ipv6 even ipv6 not available on the system
We have others docker stacks et containers (elasticsearch, nginx, php-fpm, ...) running perfect on this system in docker swarm mode, with no specific configuration related to ipv6
Can you help ? bug in container initialisation when ipv6 is disabled ?
Francis
Nalta Systems
The text was updated successfully, but these errors were encountered: