1

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?

enter image description here

4
  • 1
    Have you tried Replace native environment with specified environment? Dec 12, 2018 at 10:09
  • @TillBrychcy Yes, but that messes things up completely because other needed environment variables are missing and I don't know which are necessary. On the other hand, I could just select all environment variables in the "Select" dialog and then unset this one. Hang on, I'll test...
    – kutschkem
    Dec 12, 2018 at 10:41
  • @TillBrychcy I couldn't get it to work
    – kutschkem
    Dec 12, 2018 at 11:02
  • @TillBrychcy I did, in the end, get it to work, I was just missing one more variable that needed to be unset, and some more configuration for my docker daemon.
    – kutschkem
    Jan 22, 2019 at 8:52

1 Answer 1

0

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.