用于安装 docker-machine and/or docker-compose 的 curl 命令在 Ubuntu Xenial 中不起作用

Curl command to install docker-machine and/or docker-compose does not work in Ubuntu Xenial

我刚刚用 these instructions. When I try docker-machine version I get no output and no error message. I have already made the file executable as per this answer 安装了 docker-机器。基本上我的终端是这样的:

$ docker-machine version
$ docker-machine help
$ _

我正在安装几乎全新的 Ubuntu Xenial。我在使用 docker-compose 时遇到了同样的问题,但解决方法是使用虚拟环境并执行 pip install。我没有看到 docker-机器可用。

当它没有给我错误消息或任何类型的输出时,我该如何解决这个问题?


编辑#1

事实证明这是无关紧要的。


编辑#2

事实证明这是无关紧要的。


编辑#3

其实我肯定忽略了这里的一些东西。这是 install command.

的输出
$ curl -L https://github.com/docker/machine/releases/download/v0.7.0/docker-machine-`uname -s`-`uname -m` >/usr/local/bin/docker-machine
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  curl: (77) error setting certificate verify locations:
  CAfile: /etc/pki/tls/certs/ca-bundle.crt
  CApath: none

现在查看此路径中的内容 /etc/pki/tls/certs/ca-bundle.crt


编辑#4

我的问题是 curl。它在错误的位置寻找 ssl 个文件。该修复程序位于 ubuntu forums.

免责声明:这是 answer in the Ubuntu Forums. The author is Yahya Uddin 的副本。它解决了我的问题。


只需创建一个~/.curlrc file

然后将以下行添加到文件中:

capath=/etc/ssl/certs/
cacert=/etc/ssl/certs/ca-certificates.crt

请根据需要随意调整这些路径,因为不同的 Linux 发行版可能使用不同的路径。

(为 Ubuntu 16.04 工作)。