首页 > 解决方案 > 以前安装了 boot2docker 的机器上的 Docker for mac 抱怨 TLS 配置

问题描述

我重新使用了一台较旧的 macbook。当 Mac 的本机 docker 尚不存在时,它以前安装了 boot2docker。这可能是我问题的根本原因。

我已经为 mac 安装了新的 docker,但是当我运行 docker-compose 时出现以下错误:

docker.errors.TLSParameterError: Path to a certificate and key files must be provided through the client_config param. TLS configurations should map the Docker CLI client configurations. See https://docs.docker.com/engine/articles/https/ for API details.

我不想安装带有虚拟框或任何东西的 docker 机器。我只想像一个新的 docker 一样在本地运行它来安装 mac。到目前为止,我发现的所有解决方案都要求我使用 docker-machine。

标签: dockerdocker-for-mac

解决方案


通过取消设置所有旧版 docker 机器环境变量来修复它,以便它使用正确的 docker 命令

unset ${!DOCKER_*}

我在此处的 docker 故障排除页面上找到了解决方案。


推荐阅读