hercules-ci / arion

Run docker-compose with help from Nix/NixOS
Apache License 2.0
631 stars 47 forks source link

Cannot create container for service service-name: container create: no command or entrypoint provided, and no CMD or ENTRYPOINT from image #165

Open cor opened 2 years ago

cor commented 2 years ago

I define a

 service-name = {
   service = {
     build.context = "${./dockerfile-containing-directory}
   };
 };

And no matter what the contents of ./dockerfile-containing-directory/Dockerfile are, every time I get the following error:

Cannot create container for service service-name: container create: no command or entrypoint provided, and no CMD or ENTRYPOINT from image

Even though my Dockerfile is as follows

FROM ubuntu
RUN apt-get -y update && apt-get -y install curl && curl -L https://github.com/hasura/graphql-engine/raw/stable/cli/get.sh | VERSION=v2.10.1 bash
WORKDIR /hasura
CMD hasura console
roberth commented 2 years ago

This error is emitted by docker compose.

Docker-compose-style images have the same behavior as in docker compose, so they can go out of date. To rebuild docker-style images, run:

arion build

If the problem persists, you may inspect the compose file with:

arion config