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

后端 未结 5 1278
一个人的身影
一个人的身影 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 17:59

    What you are looking for is:

    eval "$(docker-machine env -u)"
    

    It will unset the DOCKER_* variables.

    For the record, here's the output of docker-machine env -u:

    unset DOCKER_TLS_VERIFY
    unset DOCKER_HOST
    unset DOCKER_CERT_PATH
    unset DOCKER_MACHINE_NAME
    

提交回复
热议问题