Hi, does anyone know how to pass in `--config` fla...
# general
m
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
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:
Copy code
new docker.Container("name", {
  entrypoint: "my-command",
  command: ["--config", "/home/kratos.yaml" ]
});
🙌 1
m
Ah nice - thanks for this
Interesting choice from Docker but this works - thanks!