Appending to PATH in a Windows Docker container

Unfortunately ENV won’t work, because windows environment variable work a little differently than linux. more info

As of now the only way to do this is through RUN

But you don’t need to create a separate file to do this. This can be done by the following much simpler one line command:

RUN setx path "%path%;C:\Foo\bin"

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)