how do i put multiple commands in entrypoint along with /sbin/init? #13041
Replies: 7 comments
-
@imperialguy, you can run |
Beta Was this translation helpful? Give feedback.
-
The above will spin up a container that doesn't exit immediately. But, it doesn't create the
|
Beta Was this translation helpful? Give feedback.
-
I don't think that'll work since @rhatdan @edsantiago any ideas? |
Beta Was this translation helpful? Give feedback.
-
I've always just created a script with a sequence of commands, copied the script into the image, and used the script as the entrypoint. |
Beta Was this translation helpful? Give feedback.
-
I tried that as well. It exits the container. Here:
Where,
But, here's the result. Basically, it exits the container immediately.
Is there something I am missing inside my |
Beta Was this translation helpful? Give feedback.
-
I am not sure that's going to work if we want to have |
Beta Was this translation helpful? Give feedback.
-
This is a discussion not an issue. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The following will result in a container that exits immediately.
I don't want the container exiting. For example, if I do the following, the container stays up and running.
But, what I want is to be able to run commands after the
/sbin/init
.Had to re-create this issue because #13026 was closed
Beta Was this translation helpful? Give feedback.
All reactions