-
Notifications
You must be signed in to change notification settings - Fork 155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot set path in Windows 1809 #236
Comments
Yes, this is a know issue with the underlying image. |
Please also see #164 which you JUST commented on |
In nanoserver 1809, the method used here in the Dockerfile is the only method that will work: ENV PATH="$WindowsPATH;${ProgramFiles}\PowerShell" |
Yes and I thought #164 was my issue but when you said it was fixed I realized my issue is different. |
Thank you for the workaround |
Another workaround is to use |
#164 was caused by the issue you were hitting. I cannot fix it because it's a nanoserver docker issue. I've been assured that it will be fixed in what should be |
@brianharwell I updated the issue description in #164 to include a note about this. Could you review? |
Ok thx! Great seeing you at DockerCon! |
Looks good! |
@TravisEz13 is there a way to set the path without powershell, because powershell was removed from the nanoserver base image? ok i figured out a hack ENV PATH="C:\Windows\system32;C:\Windows;C:\Program Files\PostgreSQL\bin;C:\Program Files\node;" |
@ta32 This is off topic. You need to create a windows support ticked for that question. |
Steps to reproduce
The following Dockerfile results in an image that either fails to build or does not set the path environment variable...
Expected behavior
To be able to set the path environment variable
Environment data
Server Version: 18.09.2
Storage Driver: windowsfilter
Windows:
Logging Driver: json-file
Plugins:
Volume: local
Network: ics l2bridge l2tunnel nat null overlay transparent
Log: awslogs etwlogs fluentd gelf json-file local logentries splunk syslog
Swarm: inactive
Default Isolation: hyperv
Kernel Version: 10.0 17763 (17763.1.amd64fre.rs5_release.180914-1434)
Operating System: Windows 10 Enterprise Version 1809 (OS Build 17763.316)
OSType: windows
Architecture: x86_64
Docker Root Dir: C:\ProgramData\Docker
Debug Mode (client): false
Debug Mode (server): true
File Descriptors: -1
Goroutines: 70
System Time: 2019-06-04T16:59:47.1402861-05:00
EventsListeners: 1
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
Product License: Community Engine
Name Value
PSVersion 6.2.1
PSEdition Core
GitCommitId 6.2.1
OS Microsoft Windows 10.0.17763
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
The text was updated successfully, but these errors were encountered: