none
docker not recognized RRS feed

  • Question

  • Hi,

    I setup an Azure VM w/ WS CTP3 (using the gallery).  I then added the Containers feature to that VM.  But I get an error when trying to run docker from the command line.  Am I missing something simple?  Thanks & congratulations on the big preview milestone!

    Microsoft Windows [Version 10.0.10514]
    (c) 2015 Microsoft Corporation. All rights reserved.

    C:\Windows\system32>powershell
    Windows PowerShell
    Copyright (C) 2015 Microsoft Corporation. All rights reserved.

    PS C:\Windows\system32> docker
    docker : The term 'docker' is not recognized as the name of a cmdlet, function, script file, or operable program.
    Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
    At line:1 char:1
    + docker
    + ~~~~~~
        + CategoryInfo          : ObjectNotFound: (docker:String) [], CommandNotFoundException
        + FullyQualifiedErrorId : CommandNotFoundException

    Wednesday, August 19, 2015 7:45 PM

Answers

  • I found the issue.  I created a CTP3 VM from the gallery, which is not the same as what these steps are saying!  See, my intuition was right that it was something simple *0_0*

    Thanks up and running now.

    Wednesday, August 19, 2015 9:26 PM

All replies

  • Are you following this?: https://msdn.microsoft.com/virtualization/windowscontainers/quick_start/manage_docker


    Brian Ehlert
    http://ITProctology.blogspot.com
    Learn. Apply. Repeat.

    Wednesday, August 19, 2015 8:17 PM
    Moderator
  • Hi Brian,

    going through a standard TP3 installation and later adding the Container feature leaves you with a system missing the base image required to create a new container. I don't like going through another download to get the pre-engineered Container Host VM as indicated by the guide you linked.

    Is there any procedure I can follow to download the WindowsServerCore base image on my self made host?

    Regards,

    Stefano

    Wednesday, August 19, 2015 8:42 PM
  • If you have a standard install of TP3 - you want to follow the directions here: https://msdn.microsoft.com/virtualization/windowscontainers/quick_start/inplace_setup to get everything setup.  This also installs the Docker tools for you.

    This posting is provided AS IS with no warranties, and confers no rights. You assume all risk for your use.

    Wednesday, August 19, 2015 8:46 PM
  • Indeed and the setup step before that, which is why I am wondering if I missed something simple.

    Were you successful with the guide?

    Wednesday, August 19, 2015 8:50 PM
  • With the procedure linked by Ben I was able to create a new container with both docker and PowerShell.

    Thanks,

    Stefano

    Wednesday, August 19, 2015 9:10 PM
  • I found the issue.  I created a CTP3 VM from the gallery, which is not the same as what these steps are saying!  See, my intuition was right that it was something simple *0_0*

    Thanks up and running now.

    Wednesday, August 19, 2015 9:26 PM
  • Need to Download WindowsServerCore base image from

    wget -uri https://aka.ms/setupcontainers -OutFile C:\ContainerSetup.ps1

    and run the following command C:\ContainerSetup.ps1

    Thursday, November 5, 2015 7:17 AM
  • Hi, 

    I had the same problem, I solved it by installing DockerToolbox:

    https://docs.docker.com/toolbox/toolbox_install_windows/

    Wednesday, June 21, 2017 6:05 AM