我有一个windows 10,我在里面安装了WSL ubuntu18.04。由于由于虚拟化,WSL无法使用对接器,所以我最终使用我的DigitalOcean液滴作为我的对接机目标。我遵循在这里设置对接机器的指南:https://www.kevinkuszyk.com/2016/11/28/connect-your-docker-client-to-a-remote-docker-host/来为我的Windows 10和我的uBuntu WSL设置对接机器。
问题是,由于某种原因,它只能在任何一种情况下起作用。因此,如果我在我的windows 10中设置了对接机,那么我尝试在WSL中设置具有相同配置的对接机,这些窗口将不再能够使用对接机设置,反之亦然。
这是对接机试图停靠到我的远程服务器时的错误:
Error checking TLS connection: Error checking and/or regenerating the certs: There was an error validating certificates for host "???.???.???.???:????": x509: certificate signed by unknown authority You can attempt to regenerate them using 'docker-machine regenerate-certs [name]'. Be advised that this will trigger a Docker daemon restart which might stop running containers.
对于如何使它同时适用于我的windows power shell和ubuntu wsl,有什么想法吗?
发布于 2018-10-10 15:51:27
docker-machine create将替换以前存在的证书,因此,当先前的证书失效时,我们就无法连接到码头。克服这一问题的方法是在windows或WSL中生成,然后转到用户文件夹~/.docker/machine并将所有内容复制到其他操作系统。需要进入每台机器并重新配置config.json
https://serverfault.com/questions/934604
复制相似问题