Giter Club home page Giter Club logo

Comments (10)

rn avatar rn commented on July 23, 2024

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.

bobbyAtSperry avatar bobbyAtSperry commented on July 23, 2024

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.

rn avatar rn commented on July 23, 2024

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.

bobbyAtSperry avatar bobbyAtSperry commented on July 23, 2024

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.

bobbyAtSperry avatar bobbyAtSperry commented on July 23, 2024

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.

rn avatar rn commented on July 23, 2024

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.

rn avatar rn commented on July 23, 2024

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.

bobbyAtSperry avatar bobbyAtSperry commented on July 23, 2024

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.

vidhutsingh avatar vidhutsingh commented on July 23, 2024

On Windows 2016 , i am facing the same issue .
I tried all the workaround suggested in the post and still this error comes .

  1. Rebooted the system
  2. Used command prmopt
  3. 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

Program Files
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.

docker-robott avatar docker-robott commented on July 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.