-1

I tried to use the accepted answer from this question, but I see the following error when I apply it:

containers:
  - name: service
    command: ["/bin/sh", "-c"]
    args: ["echo 123; my_executable_binary"]
/bin/sh: 0: -c requires an argument
user51
  • 8,843
  • 21
  • 79
  • 158
Alex
  • 579
  • 1
  • 6
  • 14

1 Answers1

0

Please try like this:

containers:
  - name: appname-service
    image: path/to/registry/image-name
    ports:
        - containerPort: 1234
    command: ["/bin/sh", "-c"]
    args:
      - source /env/db_cred.env;
        application-command;
Nepomucen
  • 4,449
  • 3
  • 9
  • 24