Docker Community Forums

Share and learn in the Docker community.

CMD failing with No such file or directory


(Ssudhaiyer) #1

Hi,

I have a dockerized vertx.io. And at the end, I have the following two lines for starting the server.

ENTRYPOINT [“sh”, “-c”]

CMD ["$VERTX_HOME/bin/vertx run $VERTICLE_NAME -cp $VERTICLE_HOME/*"]

I get sh: /opt/vertx/bin/vertx: No such file or directory.

If I comment out these lines and instead login to the container and run the same command, it works.

Can someone please help?

Thanks,
Sudha