Comments (10)
which shell are you using? It works for me:
PS C:\Users\docker> docker run -it ubuntu bash
root@905cd1e711a7:/# exit
PS C:\Users\docker>
from for-win.
Windows powershell. I might try a) rebooting, b) the command line prompt. I'll let you know how I get on.
I've already tried resetting docker to factory settings.
from for-win.
Can you make sure you are picking up docker.exe
from C:\Program Files\Docker\Docker\resources\bin\docker.exe
. The installer should add this to you path
from for-win.
I think it must be as that is the only docker.exe that shows up when I search the c drive.
And yes this location has been added to the path.
from for-win.
OK, i've just tried it from Command Prompt and it works fine. Still doesn't work from Windows PowerShell though. So it appears that I have a workaround. Strange that it doesn't work in Powershell. I could have sworn that's what I was using yesterday when it worked OK but I may be mistaken.
Thanks for the help @rneugeba
from for-win.
Could it be something in your powershell profile?
Could you try: powershell -noprofile
and then on the new command line:
& 'C:\Program Files\Docker\Docker\resources\bin\docker.exe' run -it ubuntu bash
from for-win.
Closing this issue for now, as it seems specific to your setup. I can't reproduce it with a variety of Windows builds. Please feel free to re-open and/or provide additional information.
Thanks
from for-win.
Thanks @rneugeba
I tried your suggestion above and it all worked. I then tried it opening as usual and it also worked!?
Only thing I can think is that the machine has been rebooted (though I thought I'd already tried that?). All working now anyway. If it happens again I'll try
- rebooting
- command prompt workaround
- -noprofile workaround.
Thanks again.
from for-win.
On Windows 2016 , i am facing the same issue .
I tried all the workaround suggested in the post and still this error comes .
- Rebooted the system
- Used command prmopt
- powershell -noprofile.
C:>dir
Volume in drive C has no label.
Volume Serial Number is 6CB0-880C
PS C:\Users\Administrator> docker version
Client:
Version: 18.09.2
API version: 1.39
Go version: go1.10.6
Git commit: 1ac774dfdd
Built: unknown-buildtime
OS/Arch: windows/amd64
Experimental: false
Server:
Engine:
Version: 18.09.2
API version: 1.39 (minimum version 1.24)
Go version: go1.10.6
Git commit: 1ac774dfdd
Built: 02/10/2019 04:13:25
OS/Arch: windows/amd64
Experimental: false
PS C:\Users\Administrator>
C:\Users\Administrator>docker run -ti --rm -v vol2:c:\vol2 microsoft/nanoserver cmd
Directory of C:\
11/20/2016 04:32 AM 1,894 License.txt
07/16/2016 05:20 AM
07/16/2016 05:09 AM Program Files (x86)
04/04/2019 03:33 AM Users
04/04/2019 03:33 AM vol2 [\?\ContainerMappedDirectories\01D8FACA-4E53-4348-9441-1C70C2E8F6EC]
04/04/2019 03:33 AM Windows
1 File(s) 1,894 bytes
5 Dir(s) 21,243,265,024 bytes free
C:>cd vol2
The parameter is incorrect.
Appreciate any help on this , thanks .
Vidhut
from for-win.
Closed issues are locked after 30 days of inactivity.
This helps our team focus on active issues.
If you have found a problem that seems similar to this, please open a new issue.
Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows.
/lifecycle locked
from for-win.
Related Issues (20)
- network_mode host support lacks useful documentation, appears it should be called something different HOT 2
- Facing issue after installing the docker desktop tool in Windows HOT 2
- Scroll bar in logs is too small on Windows 11 HOT 1
- not running docker HOT 2
- uninstall mannualy
- Docker engine does not start or restart HOT 1
- Docker keeps reload
- Docker Desktop - WSL update failed
- Fail to start Docker Desktop on ARM64 with WSL unchecked HOT 1
- Builds/Builders inside WSL2 are not showing in Docker Desktop for Windows HOT 2
- Docker Desktop 4.30.0 GUI Issue Unable to expand container folders with modified files. HOT 10
- Docker compose is not upgraded with Docker Desktop HOT 1
- Docker Desktop - WSL update failed
- Cannot be Administrator + Docker user
- Cannot Start After Upgrading | WSL Errors HOT 2
- Cannot start Docker Desktop Installer HOT 1
- All volumes, containers and images are missing after Docker for Windows upgrade HOT 65
- Docker Desktop - WSL update failed HOT 7
- Docker Desktop - Unexcepted WSL error HOT 3
- WSL Probleme when trying to start docker it stucks at the loading page and ends with showing an error !!! HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from for-win.