WSL 2 Docker running slow

Yesterday I discovered my new Alpine Linux WordPress container had terrible latency when loading any pages. Running docker stats I could see the issue was not related to resources. A google search brought up this issue on the WSL GitHub project. It turns out there are very low throughput speeds when accessing the Windows file system in a WSL container. This is exactly what I was doing, hosting my WordPress files on the Windows file system instead of in WSL’s file system....

December 23, 2020 · 1 min · chart

WSL Wrong Time: How to Fix incorrect Time in WSL

While working with AWS SAM I ran into an error caused by the local system time of WSL being wrong. In the above image notice that the date command outputs the hour being 4. A call to worldtimeapi.org for my timezone shows the time being 12. Something is wrong. World time API call formatted with JQ: curl -s "http://worldtimeapi.org/api/ip" | jq '.["datetime"]' I attempted to re-configure WSL Ubuntu’s time with sudo dpkg-reconfigure tzdata...

July 13, 2020 · 2 min · chart