How to unset an environment variable in Eclipse run configuration?

时光总嘲笑我的痴心妄想 提交于 2019-12-23 03:42:16

问题


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.

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).

How can I unset the variable?


回答1:


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}.



来源:https://stackoverflow.com/questions/53740219/how-to-unset-an-environment-variable-in-eclipse-run-configuration

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!