Appending to PATH in a Windows Docker container
问题 I need to append to the PATH within a Windows Docker container, and I've tried many permutations. ENV PATH=%PATH%;C:\\Foo\\bin ENV PATH=$PATH;C:\\Foo\\bin ENV PATH="%PATH%;C:\Foo\bin" ENV PATH="$PATH;C:\Foo\bin" RUN "set PATH=%PATH%;C:\Foo\bin" None of these work: they don't evaluate the preexisting PATH variable. What is the right syntax to append to the PATH? Can I even append to the PATH inside Docker? (I can on similar Linux containers) 回答1: Unfortunately ENV won't work, because windows