If u are trying to config docker resource with wsl config file. You need to restart wsl sub-system first; and the best way to restart your wsl sub-system is restart your computer.