Docker commands fails (in Windows)

前端 未结 25 2543
-上瘾入骨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条回答
  •  猫巷女王i
    2020-12-23 02:49

    1. Open cmd with admin rights.
    2. Execute following command

      docker-machine env --shell cmd default

    3. you will receive following output

      SET DOCKER_TLS_VERIFY=1

      SET DOCKER_HOST=tcp://192.168.99.102:2376

      SET DOCKER_CERT_PATH=C:\Users\DBashyal.docker\machine\machines\default

      SET DOCKER_MACHINE_NAME=default

      REM Run this command to configure your shell:

      REM @FOR /f "tokens=*" %i IN ('docker-machine env --shell cmd default') DO @%i

    4. Copy the highlighted line and execute on cmd

      @FOR /f "tokens=*" %i IN ('docker-machine env --shell cmd default') DO @%i

    5. Execute following command

      docker ps

提交回复
热议问题