问题
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