Docker commands fails (in Windows)

前端 未结 25 2494
-上瘾入骨i
-上瘾入骨i 2020-12-23 02:26

I am trying to use Docker on a windows machine and is hit with every possible issue it seems. My latest one is this: My machine is running but I can\'t seem to interact with

25条回答
  •  天命终不由人
    2020-12-23 02:38

    To start default host in windows I know three ways given below you can use one of them.

    1. Starting or restarting already created a default machine by the Docker:

      docker-machine start default
      docker-machine restart default
      

      Now check docker-machine env

    2. The following environment properties need to be set:

      set DOCKER_CERT_PATH=%USERPROFILE%\.docker\machine\machines\default
      set DOCKER_HOST=tcp://192.168.99.100:2376
      set DOCKER_MACHINE_NAME=default
      set DOCKER_TLS_VERIFY=1
      
    3. To create a new machine using the following command:

    Windows 10/HyperV:

    docker-machine create --driver hyperv default
    docker-machine create -d hyperv default
    

    Mac, Linux, windows 7 & 8:

    docker-machine create --driver virtualbox default
    docker-machine create -d virtualbox default
    

提交回复
热议问题