You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- run portainer with autostart. (run portainer from @deployment/deploymentScript package.)
199
199
- Turn on WSL2 integration of Docker Desktop.
200
-
<!-- !important: docker desktop engine on WSL2 (unreleased version) still has the following required features not implemented fully:
201
-
- [Supported β] ~/var/run/docker.sock volume still not supported as mentioned in https://www.docker.com/blog/new-docker-desktop-wsl2-backend/~
202
-
- [Supported β both host and bridge] WSL2 is now running with a host-only network adapter (While the WSL VM is still on a host-only network adapter, you can access things like docker containers through localhost on your Windows (host) machine) https://medium.com/faun/windows-subsystem-on-linux-wsl-2-first-impressions-96adaf2ebe76
203
-
Use --network="host" in your docker run command, then 127.0.0.1 in your docker container will point to your docker host. https://stackoverflow.com/questions/24319662/from-inside-of-a-docker-container-how-do-i-connect-to-the-localhost-of-the-mach
204
-
The issue is that networking is messed up a little when using docker desktop on WSL2, from what I've observed, docker desktop WSL2 ports are exposed, they do not conflict with localhost but override their access (accessing localhost:8080 will be tranmitted to the WSL2 container, over the host's server/app).
205
-
https://github.com/microsoft/WSL/issues/4212
206
-
WSL2 will have it's own ip address https://docs.microsoft.com/en-us/windows/wsl/wsl2-ux-changes#accessing-network-applications
207
-
Important note about networking - https://github.com/microsoft/WSL/issues/4150#issuecomment-504209723
208
-
Port exposure when using `--network="host"` in docker run command (e.g. relying on Windows host program like memgraph on host): When host network is used, the container for some reason stops being accessible through eaither WSL2 ip or localhost. Checkout - https://docs.docker.com/network/host/
209
-
WSL2 ip = `ip addr show dev eth0` reveals the address that allows to access the containers ports in the VM.
210
-
host machine ip = `cat /etc/resolv.conf`
211
-
- Accessing WSL2 from Windows can be accessed with localhost.
212
-
- Accessing Windows from WSL2 can be accessed through host machine ip address.
213
-
- [Not supported β] iNotify from Windows to WSL2
- Preferences > Refresh > Referesh file system in background.
222
+
237
223
238
224
### Github Desktop:
239
225
- sign in to github account.
@@ -277,14 +263,40 @@ ___
277
263
once reached `change default shell` exit the new zsh shell that will be opened to continue installation. Repeat execution if errors occur, and make sure all commands in installations where executed (e.g. powerlevel10K theme in ZSH command group). this command will also update linux `sudo apt update -y && sudo apt upgrade -y`
- Setup VSCode in WSL2: ctrl+shift+p and search for "Remote: WSL new window", in which VSCode will download WSL server automatically and set it up.
280
-
Resources:
281
-
-https://github.com/shayne/wsl2-hacks
282
-
266
+
- Setup Linux graphical server and Windows client to access WSL2 graphical programs: https://medium.com/@chuckdries/installing-gitkraken-in-wsl-2-15bf6459f823
267
+
TODO: Install smartGit graphical program in WSL2 and access it through Windows to take advantage of `inotify` support for autorefresh (as not yet supported), and use wsl own git installation.
283
268
284
-
Notes:
269
+
Notes & Resources:
285
270
- An attempt to install WSL2 in insiders program (slow ring):
286
271
- OS biuld before switching to insiders = 18363.592 (version 1909) or 18363.628
<!-- !important: docker desktop engine on WSL2 (unreleased version) still has the following required features not implemented fully:
276
+
- [Supported β] Access WSL2 executables from windows: e.g. ` \Windows\System32\wsl.exe git status` in Windows will use the wsl git executable.
277
+
- [Supported β] /var/run/docker.sock volume still not supported as mentioned in https://www.docker.com/blog/new-docker-desktop-wsl2-backend/
278
+
- [Supported β both host and bridge] WSL2 is now running with a host-only network adapter (While the WSL VM is still on a host-only network adapter, you can access things like docker containers through localhost on your Windows (host) machine) https://medium.com/faun/windows-subsystem-on-linux-wsl-2-first-impressions-96adaf2ebe76
279
+
https://www.youtube.com/watch?v=Xxhhdo2e-DA
280
+
Use --network="host" in your docker run command, then 127.0.0.1 in your docker container will point to your docker host. https://stackoverflow.com/questions/24319662/from-inside-of-a-docker-container-how-do-i-connect-to-the-localhost-of-the-mach
281
+
The issue is that networking is messed up a little when using docker desktop on WSL2, from what I've observed, docker desktop WSL2 ports are exposed, they do not conflict with localhost but override their access (accessing localhost:8080 will be tranmitted to the WSL2 container, over the host's server/app).
282
+
https://github.com/microsoft/WSL/issues/4212
283
+
WSL2 will have it's own ip address https://docs.microsoft.com/en-us/windows/wsl/wsl2-ux-changes#accessing-network-applications
284
+
Important note about networking - https://github.com/microsoft/WSL/issues/4150#issuecomment-504209723
285
+
Port exposure when using `--network="host"` in docker run command (e.g. relying on Windows host program like memgraph on host): When host network is used, the container for some reason stops being accessible through eaither WSL2 ip or localhost. Checkout - https://docs.docker.com/network/host/
286
+
WSL2 ip = `ip addr show dev eth0` reveals the address that allows to access the containers ports in the VM.
287
+
host machine ip = `cat /etc/resolv.conf`
288
+
- Accessing WSL2 from Windows can be accessed with localhost.
289
+
- Accessing Windows from WSL2 can be accessed through host machine ip address.
290
+
- [Not supported β] iNotify from Windows to WSL2
- Use windows executable from WSL2: https://www.reddit.com/r/bashonubuntuonwindows/comments/evs4hr/do_you_like_using_wsl2_but_hate_how_slow_git_runs/
297
+
- Run graphical applications of WSL2 from Windows: https://www.reddit.com/r/bashonubuntuonwindows/comments/evs4hr/do_you_like_using_wsl2_but_hate_how_slow_git_runs/ffypob0/
0 commit comments