Macbook, Latest Docker for Mac, Kokoro Conatiner

Hi,

I installed the Mac desktop app, and then the Kokoro conatines, using:

/usr/local/bin/docker container run -m 2G -i --tty --name kok ghcr.io/remsky/kokoro-fastapi-cpu:latest

It launches (supposedly) in http://localhost:8880/web/

But I get:

This site can’t be reached

localhost refused to connect.

Does anyone have any ideas?

Many thanks in advance.

Gavin

I assume you saw the logs in the container saying the service started on localhost. That is only localhost in the container. You need port forwarding to make it available on your host

docker container run -m 2G -i --tty --name kok -p 8880:8880 ghcr.io/remsky/kokoro-fastapi-cpu:latest

You can change the left side of the port mapping if you want to make it available on a diffrent port. But don’t change the right side.

docker container run -m 2G -i --tty --name kok -p 8888:8880 ghcr.io/remsky/kokoro-fastapi-cpu:latest

But… if the seervice actually stared on localhost, this will not work. Only if the process is listening on all IPs and you just saw a recommendation to access the website.

Many thanks - much appreciated

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.