How do I undo the command $ eval “$(docker-machine env blog)”

后端 未结 5 1286
一个人的身影
一个人的身影 2021-02-01 17:47

I think that command redirected $ docker commands to the docker machine. Now all my docker commands are giving me an error FATA[0000] Couldn\'t read ca cert.

5条回答
  •  灰色年华
    2021-02-01 18:11

    All you have to do is run

    docker-machine env machine-name
    

    Then, copy and run the last segment in the output to set or remove the env variables.

    Which looks like this in Windows :

    eval $("C:\Program Files\Docker Toolbox\docker-machine.exe" env machine-name)
    

    If it's set already, docker adds a "-u" at the tail to make the task easy.

    like this in Windows :

    eval $("C:\Program Files\Docker Toolbox\docker-machine.exe" env -u)
    

    That's all.

提交回复
热议问题