Docker: Error response from daemon: Container command not found or does not exist

I get the error today.

docker: Error response from daemon: Container command not found or does not exist…

I guess that I created an image “hellodocker”, now I start a container by the command.
The command is
docker -H tcp://my_ip_address:2375 run -t -d -p 5006:5006 -e "server.urls=http://*.5006" hellodocker

Then it returned to me
b02054aef2369c7419f3518bc64bd13b35f9e3bd85af3577efd3afe2c435ff72
docker: Error response from daemon: Container command not found or does not exist…

So what is going on?

It seems that you have not set ENTRYPOINT or CMD in the Dockerfile, and did not specify the command on the CLI (the last argument you pass is the image name).

You want something like:

$ docker -H tcp://my_ip_address:2375 run \
    -t -d \
    -p 5006:5006 \
    -e "server.urls=http://*.5006" \
    hellodocker \
    echo hello docker

(or invoke your server etc.)

By the way, -t and -d are rarely used together (usually don’t need to simulate a TTY when detached), so unless you’re certain you need -t, probably just -d is sufficient.

I have ENTRYPOINT in Dockfile.

FROM microsoft/aspnet:1.0.0-rc1-update1

ADD . /app

WORKDIR /app/approot

ENTRYPOINT ["./web"]

Maybe the command(framework) is wrong?

Are you 100% sure the image you’re running (hellodocker) is the one that was built from that Dockerfile?

And if so, that the web executable is available at /app/approot/web? e.g. does docker run hellodocker ls -lah /app/approot/web verify this?