windows-container

Appending to PATH in a Windows Docker container

梦想与她 提交于 2019-11-28 03:13:51
问题 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

Can Windows Containers be hosted on linux?

孤人 提交于 2019-11-26 21:19:06
Is it possible to run Windows Containers on Linux ? The scenario is based on an app written in the .NET (old net) and the Linux user that wants to run this with Docker to provide a net462 written API on the localhost . I am using beta version from Docker Desktop for Windows If no, then why can Windows run Linux containers and not vice-versa? EDIT: As some time has passed and this question is a popular one. I'd like to add one note here that the workaround is to use the new netstandard. It allowed me to pack 4.6.2 framework into new library. Update3: 06.2019 Some of the comments says that the

Can Windows Containers be hosted on linux?

佐手、 提交于 2019-11-26 07:54:14
问题 Is it possible to run Windows Containers on Linux ? The scenario is based on an app written in the .NET (old net) and the Linux user that wants to run this with Docker to provide a net462 written API on the localhost . I am using beta version from Docker Desktop for Windows If no, then why can Windows run Linux containers and not vice-versa? EDIT: As some time has passed and this question is a popular one. I\'d like to add one note here that the workaround is to use the new netstandard. It