slider23 / wsl2-docker-start

Script added wsl2 host to windows hosts file

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

wsl2 docker start script

Script adding wsl2 and winhost to windows hosts file File Windows/System32/drivers/etc/hosts should be writebable for user from which launched WSL2

How to use

  1. Copy to /usr/local/bin
  2. $ docker-start
  3. Enjoy!)

Your docker server now available here tcp://wsl2:2375 And any other services

xDebug config examle

zend_extension=xdebug.so
xdebug.remote_host=winhost
xdebug.remote_enable=1
xdebug.remote_port=9000
xdebug.remote_connect_back=0
xdebug.idekey=PHPSTORM
xdebug.remote_autostart=1
xdebug.remote_log = /home/user/xdebug.log

About

Script added wsl2 host to windows hosts file


Languages

Language:Shell 100.0%