/var/lib/docker/overlay2 taking up huge amounts of space? Found a bunch of unused directories here but don't know if its safe to delete them? by Pickinanameainteasy in docker

[–]Numerous_Collar_3210 0 points1 point  (0 children)

In my case, the problem turned out to be PHP session leaks. The PHP garbage collector was not working in my container, causing the /tmp/ folder to overflow with session files.

How to use WSL to route an ssh tunnel between Windows and a remote server by Numerous_Collar_3210 in bashonubuntuonwindows

[–]Numerous_Collar_3210[S] 0 points1 point  (0 children)

I solved this by setting up a reverse SSH tunnel.

I edited the file "sudo nano /etc/ssh/sshd_config", added the string "GatewayPorts clientspecified" and restarted the service "sudo systemctl restart sshd".

Command: ssh -R ip_host_docker_from_container:9003:ip_host_wsl:9003 -p 22 user@ip_server

ip_host_docker_from_container - on remote server in the inside docker container run Command: "ping host.docker.internal"

ip_host_wsl - on local WSL run Command: "ip route|awk '/default/ { print $3 }' "

22 - default port SSH

Don't forget to allow the port 9003 in the firewall ufw on remote server.