Docker multiline CMD or ENTRYPOINT

I have a really long command line for the default process due to a number of arguments. I think the easiest would be to create a script (for and then call this script in your ENTRYPOINT or CMD. I’m wondering if there is a way to make your ENTRYPOINT or CMD multiline (the way we write RUN). For eg.

           "arg2" ]

I was thinking this is a valid syntax since the format is json. However, docker build throws the error

  • What are default credentials for docker cloud Ubuntu node?
  • How can I connect to a docker container using its name instead of its IP address?
  • HTTP(S) Load Balancing for Kubernetes / Docker
  • Does capitrano conflict with docker?
  • How to show all users in dockers group?
  • How to make redis BROKER_URL dynamic on deployment to AWS instance
  • Step 14 : ENTRYPOINT[
    Unknown instruction: ENTRYPOINT[

    Is there a way I can split the ENTRYPOINT to multiple lines?

  • Docker - adding DNS by editing “docker” file
  • Can't reach ActiveMQ from inside Docker container
  • mkdir command with docker
  • Slow performance on Docker Containers as a Compile and Run Sandbox
  • Cannot get boot2docker port forwarding to work on docker mac os X
  • How do you deploy properly to AWS with Elastic beanstalk and
  • One Solution collect form web for “Docker multiline CMD or ENTRYPOINT”

    It was a typo in the dockerfile. I missed a space between ENTRYPOINT and [. Dockerfile supports multiline ENTRYPOINT and CMD by terminating the line with \, same as RUN. So, in my case it can be

    ENTRYPOINT [ "/path/myprocess", \
                 "arg1",            \
                 "arg2"             \
    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.