问题描述
我有一个用于docker-compose的外部运行配置,并且需要禁用TLS验证,因为我的VPN弄乱了我的连接,因此我通过转发端口进行了连接。
I have an external run configuration for docker-compose, and need to disable TLS verification because my VPN messes with my connection and I connect through a forwarded port because of that.
我发现对docker-compose这样做的唯一方法是取消设置环境变量DOCKER_TLS_VERIFY(将其设置为0无效)。请注意,在环境变量视图中将其设置为空String无效(请参见屏幕截图)。
The only way I have found to do that for docker-compose is to unset the environment variable DOCKER_TLS_VERIFY (setting it to 0 does not work). Note that setting it to an empty String in the environment variables view did not work (see screenshot).
如何取消设置变量?
推荐答案
在对话框底部,选择用指定的环境替换本机环境 并使用 env_var
设置值来定义要保留的变量,例如e。 G。将 DOCKER_HOST
的值设置为 $ {env_var:DOCKER_HOST}
。
On the bottom of the dialog, choose Replace native environment with specified environment and define the variables you want to keep by using the env_var
to set the value, e. g. set the value of DOCKER_HOST
to ${env_var:DOCKER_HOST}
.
这篇关于如何在Eclipse运行配置中取消设置环境变量?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!