Can't connect to simple server

I am completely new to Docker.

I got the following Dockerfile to work with

FROM --platform=linux/amd64 debian:bookworm-slim

RUN apt-get update && apt-get -y install ca-certificates openssl procps
COPY mixer start-mixer.sh mixrt.wasm /
RUN adduser --disabled-password -ingroup www-data --gecos "" remixlabs

WORKDIR /
EXPOSE 8000
ENTRYPOINT ["/start-mixer.sh", "--log-json", "serve", "--ws-dir", "/dbs", "--address", "0.0.0.0", "--port", "8000", "--jwks-url", "https://auth.remixlabs.com/a/x/jwks.json", "--mixrt-wasm", "/mixrt.wasm"]

and am using the latest version of docker.desktop on MacOS 15.2.

In the logs I see confirmation that the server started

2025-01-07 18:26:15 Serving agents at http://0.0.0.0:8000

But when I try to get to localhost I get localhost refused to connect. - how should I go about trying to debug this?

Please, share how you start the container.

I use docker desktop

Ok, I was completely defeated by the UI. It seems the settings were not ‘optional’ at all, and that the reference to 8000/tcp was not the default value that would otherwise be used. I had to open the section and type 8000 and then it works fine :man_shrugging:

Of course it was, but optional does not mean you never need it. It means you can use it when you need it, and not all containers require port forwarding.

After playing with Docker Desktop’s GUI, I recommend learning about Docker Compose and the command line, since not everything can be implemented in the UI without making it so complicated that it is not as easy to use as now.

And keep in mind that Docker Desktop always runs a virtual machine and containers run in that, so not everything will work as in tutorials talking about Docker CE.

Recommended links to learn the basics and concepts:

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