Posts

Showing posts from June, 2017

Docker DNS problem

Installed new version of the Docker, and suddenly was faced to a problem of not working DNS server. As usual I went to the /etc/default/docker, but found out that big changes occurred. Now to enable DNS should go in the different way: 1. Find company supported DNS servers: $ nmcli dev show | grep 'IP4.DNS' 2. Update /etc/docker/daemon.json: { "dns": ["10.0.0.2", "8.8.8.8"] } More information here

Socks proxy and Intelij

To run tests on remote server sometimes we need to go on it through jump server. At this case very helpful is the next command (creates SOCKS proxy pipe): ssh -D 1337 -f -C -q -N <jump server> -p 22 At this case to use socks proxy by JVM running tests, put next options -ea  -DsocksProxyHost=localhost  -DsocksProxyPort=1337 into the Edit configuration -> VM options pop-up.