https://pulumi.com logo
Title
m

most-lighter-95902

01/28/2022, 4:23 AM
Hi, does anyone know how to pass in
--config
flag to
docker run
via Pulumi? I’m using
new docker.Container
but not sure how I can pass in custom flags like this?
q

quiet-wolf-18467

01/28/2022, 9:43 AM
So Docker uses the concept of
entrypoint
and
command
, where the command is the arguments to the entrypoint; unless the entrypoint is omitted and then the command is the command
It's awful, I know
However, what you wanna do is this:
new docker.Container("name", {
  entrypoint: "my-command",
  command: ["--config", "/home/kratos.yaml" ]
});
🙌 1
m

most-lighter-95902

01/28/2022, 10:03 PM
Ah nice - thanks for this
Interesting choice from Docker but this works - thanks!