" TLS配置无效"当呼叫" docker-compose build"

时间:2016-04-14 04:13:18

标签: docker docker-compose

我试图在我的Linux Ubuntu机器上运行Docker。在创建名为clicc的docker-machine(" docker-machine create -d virtualbox clicc")之后,我运行了以下代码并收到了错误消息。

XXX:~/dockerFile/clicc$ sudo docker-machine env clicc; eval $(sudo docker-machine env clicc)
sudo: unable to resolve host XXX
export DOCKER_TLS_VERIFY="1"
export DOCKER_HOST="tcp://192.168.99.100:2376"
export DOCKER_CERT_PATH="/home/XXX/.docker/machine/machines/clicc"
export DOCKER_MACHINE_NAME="clicc"
# Run this command to configure your shell: 
# eval $(docker-machine env clicc)
sudo: unable to resolve host XXX
XXX:~/dockerFile/clicc$ docker-compose build
ERROR: TLS configuration is invalid - make sure your DOCKER_TLS_VERIFY and DOCKER_CERT_PATH are set correctly.
You might need to run `eval "$(docker-machine env default)"`

我重新考虑了#(e)$(sudo docker-machine env clicc)",但我仍然得到了同样的错误信息。

我很感激有人可以帮我弄清问题是什么。

0 个答案:

没有答案