none
Enable nested virtualization for docker RRS feed

  • Question

  • Hi ,

    could you please let me know if nested virtualization mandatory to run docker in windows 2016


    Continuous plan Do review is key to success.
    Please mark as answer \Helpful if its . My Linkedin Profile

    Monday, January 15, 2018 9:49 PM

All replies

  • No if you want to run containers in process isolation mode, only needed if you want to run Hyper-V containers.
    Monday, January 15, 2018 9:58 PM
  • Hi ,

    Thanks for response , I am trying to install docker without hyper-v , but it s not working .


    Test your Docker EE installation by running the hello-world container.

    docker container run hello-world:nanoserver


    PS C:\Users\Administrator> docker container run hello-world:nanoserver
    docker : C:\Program Files\docker\docker.exe: error during connect: Post
    http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.30/containers/create: open //./pipe/docker_engine: The system cannot find
    the file specified. In the default daemon configuration on Windows, the docker client must be run elevated to
    connect. This error may also indicate that the docker daemon is not running.
    At line:1 char:1
    + docker container run hello-world:nanoserver
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (C:\Program File...is not running.:String) [], RemoteException
        + FullyQualifiedErrorId : NativeCommandError
     
    See 'C:\Program Files\docker\docker.exe run --help'.

    -----------------------

    Followed this

    Use a script to install Docker EE

    Use the following steps when you want to install manually, script automated installs, or install on air-gapped systems.

    1. In a PowerShell command prompt, download the installer archive on a machine that has a connection.

      # On an online machine, download the zip file.
      invoke-webrequest -UseBasicparsing -Outfile docker-17.06.2-ee-6.zip https://download.docker.com/components/engine/windows-server/17.06/docker-17.06.2-ee-6.zip
      
    2. Copy the zip file to the machine where you want to install Docker. In a PowerShell command prompt, use the following commands to extract the archive, register, and start the Docker service.

      # Extract the archive.
      Expand-Archive docker-17.06.2-ee-6.zip -DestinationPath $Env:ProgramFiles
      
      # Clean up the zip file.
      Remove-Item -Force docker-17.06.2-ee-6.zip
      
      # Install Docker. This will require rebooting.
      $null = Install-WindowsFeature containers
      
      # Add Docker to the path for the current session.
      $env:path += ";$env:ProgramFiles\docker"
      
      # Optionally, modify PATH to persist across sessions.
      $newPath = "$env:ProgramFiles\docker;" +
      [Environment]::GetEnvironmentVariable("PATH",
      [EnvironmentVariableTarget]::Machine)
      
      [Environment]::SetEnvironmentVariable("PATH", $newPath,
      [EnvironmentVariableTarget]::Machine)
      
      # Register the Docker daemon as a service.
      dockerd --register-service
      
      # Start the Docker service.
      Start-Service docker
      
    3. Test your Docker EE installation by running the hello-world container.

      docker container run hello-world:nanoserver


    Continuous plan Do review is key to success.
    Please mark as answer \Helpful if its . My Linkedin Profile

    Wednesday, January 17, 2018 8:22 AM
  • Never mind.

    If your system does not have access to internet how are you planning to run your command since your registry will not be available either?

    Check if your service is running and check if it's listening on 2375

    Get-NetTCPConnection -State Listen -LocalPort 2375

    Wednesday, January 17, 2018 4:43 PM