I am using dockerode to control docker using a remote api. Everything works fine, except that I cannot figure out how to set up the environment when I create the container.
The docker document does not provide any information about the format of the Env message parameters.
I tried {Env: ["foo = bar", "fii: boo"], ...} {Env: {"foo": "bar", "fii": "boo"}, ...} without success .
Does anyone know how to achieve this?
source
share