docker cannot start on windows

后端 未结 30 2423
北海茫月
北海茫月 2020-12-04 09:17

Executing docker version returns the following results.

C:\\Projects> docker version
Client:
 Version:      1.13.0-dev
 API version:  1.25
 G         


        
相关标签:
30条回答
  • 2020-12-04 10:08

    I have faced same issue, it may be issue of administrator, so followed below steps to setup docker on

    windows10

    .

    1. Download docker desktop from docker hub after login to docker.Docker Desktop Installer.exe file will be downloaded.
    2. Install Docker Desktop Installer.exeusing Run as administrator -> Mark windows container during installation else it will only install linux container. It will ask for Logout after logging out and login it shows docker desktop in menu.
    3. After install, go to -> computer management -> Local users and groups -> Groups -> docker-user -> Add user in members
    4. Run docker desktop using Run as administrator
    5. Check docker whale icon in Notification tab
    6. run command >docker version Successfully using docker without any issue.
    0 讨论(0)
  • 2020-12-04 10:09

    I know this question was long ago but I found no proper explanation and solution, so hopefully, my answer is useful :)

    Assuming you install Docker Toolbox on Windows, both docker and docker-machine commands will be available. Often, people get confused when to use either of these.

    The docker commands are used only within a virtual machine to manage images. The docker-machine commands are used on the host to manage the Linux VMs.

    So, please use docker-machine commands on your Windows machine. Use docker command inside your VM. To use the docker commands, for example, docker ps, you either can open Docker Quickstart Terminal or run these on your cmd/bash/PowerShell:

    docker-machine run default /assuming default is your Linux VM/

    docker-machine ssh default

    This will start boot2docker and you will see the docker icon on the command line. Then you can use docker commands.

    Good luck :)

    0 讨论(0)
  • 2020-12-04 10:10

    Solved for me by running a docker desktop app, check-in notification. Setup if necessary.

    $ net start com.docker.service
    

    The Docker for Windows Service service is starting. The Docker for Windows Service service was started successfully.

    $ docker version
    
    $ net start com.docker.service
    

    The requested service has already been started.

    0 讨论(0)
  • 2020-12-04 10:12

    with the recent update of docker, I had an issue which was docker app hanged at startup. I resolved this by terminating wsl.exe using taskmanager.

    0 讨论(0)
  • 2020-12-04 10:13

    After installing docker desktop into your pc (windows one). You may find up this location. What is actually does,? It starts the Docker Daemon via your CLI

    C:\Windows\System32\cmd.exe\DockerCli.exe -SwitchDaemon
    
    0 讨论(0)
  • 2020-12-04 10:15

    I was getting same errors after an install on Windows 10. And I tried restarting but it did not work, so I did the following (do not recommend if you have been working in docker for awhile, this was on a fresh install):

    1) Find the whale in your system tray, and right click

    2) Go to settings > Reset

    3) Reset to factory defaults

    I was then able to follow the starting docker tutorial on the website with Windows 10, and now it works like a charm.

    0 讨论(0)
提交回复
热议问题