![]() ![]() Sudo curl -fsSL -o get-docker.sh & sudo sh get-docker.sh & sudo usermod -aG docker $USER & \ Go to the docker settings and turn on Expose daemon on tcp://localhost:2375 without TLS and turn off Use the WSL 2 based engine.Works on Ubuntu 18.04 and Debian from windows store: If you want a very short solution, it is here. This is because wsl2 filesystem performance is much slower than wsl1 in /mnt. You are running your project on the /mnt/xxx folder, isn't it? This would result in poor build performance, since WSL 2 will still have to access your Windows filesystem in order to build these docker images, but the runtime performance will be much better, since it won't have to retrieve these files from the Windows environment everytime. You could choose to create your own Dockerfiles and instead of mounting your project, you can COPY the desired directories into the docker images instead. Store your project in the Linux filesystem of WSL 2Īgain, since this issue occurs when WSL 2 tries to access the mount points of the Windows filesystem under /mnt, you could choose to store your project onto the Linux filesystem of WSL 2 instead. You can find the option to disable it in the UI of Docker Desktop here: ![]() Since this issue only occurs when WSL 2 tries to access the Windows filesystem, you could choose to disable WSL 2 docker integration and run your containers on your Windows environment instead. There are three possible solutions I can think of that will resolve this issue for now.ĭisable WSL 2 based engine for docker until the issue is resolved This I/O issue exists as of July 2020, you can find the ongoing status of the issue on GitHub here. This could result in very poor file I/O if you are mounting these files from your Windows environment to WSL 2, since WSL 2 currently has a lot of problems accessing files that are on the Windows environment. It looks like you are mounting your Laravel project in your container. I've been trying to fix this issue for 2 days but couldn't find the answer. nginx/nf:/etc/nginx/conf.d/nfĮntrypoint: My docker-compose.yml file: version: '3.8' When I create a simple index.php file with "Hello World" it's working perfectly ( response: 100-400ms ) but when I added my Laravel project it becomes miserable as it loads for 7sec before performing the request and the response is 4 - 7 seconds□, even though PHPMyAdmin is running very smoothly ( response: 1 - 2 seconds ). I've updated Windows 10 to 2004 latest version, installed wsl2 and updated it, installed docker, and ubuntu. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |