Open Francis-Nalta opened 6 months ago
Maybe related to https://github.com/LibreTranslate/LibreTranslate/pull/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. Francis
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.
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 I corrected the declaration to point to a local directory. (notice docker create a volatil volume as if there is no volume declaration in case volume is not explicitly redirected)
But this volume declaration corrected, this dont change the problem, 1.5.6 stop with the same error, And previous versions work well (<= 1.5.5) so the problem persist in 1.5.6 with ipv6 disabled on host (and docker)
Just tried 1.5.7 : same error ...
Try run this:
docker run -ti --rm -p 5000:5000 libretranslate/libretranslate --host 0.0.0.0 --load-only en,fr
Its worked for me in windows ( I modified run.bat ). In my case, its because docker don't support ipv6 https://docs.docker.com/config/daemon/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
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