How to access Docker TCP Socket?

As mentioned in Using pycharm docker plugin with docker beta this workaround is not recommended.