简体   繁体   English

Windows上的Docker Toolbox:禁用TLS

[英]Docker Toolbox on Windows: disable TLS

I installed Docker Toolbox on Windows 7 and it seems to work. 我在Windows 7上安装了Docker Toolbox,它似乎工作正常。 Now it is running on port 2376 with (I Suppose) TLS enabled 现在它在端口2376上运行,启用(假设)TLS

$ docker-machine ls
  NAME      ACTIVE   DRIVER       STATE     URL   SWARM   DOCKER ERRORS
  default   *        virtualbox   Running   tcp://192.168.99.100:2376           v17.06.1-ce

I'd like to run on port 2375 with TLS disabled. 我想在禁用TLS的2375端口上运行。

Is it possible (on Windows?) 是否可能(在Windows上?)

I found a lot of suggestion but for Linux 我找到了很多建议但是对于Linux

If you are running Windows 10 + Windows Subsystem for Linux + Ubuntu + Docker Toolbox make sure to add following lines (thanks @pacionet for help) to either .zshrc or .bashrc : 如果您运行的是Windows 10 +的Windows子系统用于Linux的Ubuntu + +泊坞窗工具箱确保添加以下行(感谢@pacionet求助)要么.zshrc.bashrc

export DOCKER_HOST=tcp://192.168.99.100:2376 // your Docker IP
export DOCKER_CERT_PATH=/mnt/c/Users/YOUR_USERNAME/.docker/machine/certs
export DOCKER_TLS_VERIFY=1

If you get any TLS related errors when using docker-compose later on, please make sure that you are using latest Docker Compose version. 如果您在以后使用docker-compose时遇到任何与TLS相关的错误,请确保您使用的是最新的Docker Compose版本。

I solved with this configuration on MAVEN "Run Configuration" environment properties 我在MAVEN“运行配置”环境属性上使用此配置解决了问题

DOCKER_CERT_PATH C:\Users\<username>\.docker\machine\certs
DOCKER_HOST tcp://192.168.99.100:2376
DOCKER_TLS_VERIFY 1

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM