0

When running with Docker on Windows and using linux subsystem (WSL version 2) I can't get Docker to delete any container that I want to remove. Anyone else had this problem on windows and how to solve it?

See screenshot to how Docker responds: screenshot to how Docker responds

Docker says "can't remove docker container, reason being that folder in question '/home/niko/laravel-app1', it's path can not be found.

however I can navigate to this folder via Explorer \wsl$\Ubuntu-20.04\home\niko\laravel-app1

enter image description here

Anyone had any experience with this and how to get Docker to understand where the files actually are so it can delete the container when I ask it to do so?

niko craft
  • 2,893
  • 5
  • 38
  • 67
  • Interesting, might be a windows vs. linux problem since the GUI application runs on windows. Try using the command line from within WSL to shut down this compose app. – tkausl Jul 04 '22 at 21:42
  • what command line could I use? I'm using laravel sail, do you mean I should run "sail stop" or some other command? – niko craft Jul 04 '22 at 21:48
  • In WSL switch to `/home/niko/laravel-app1` and run `docker-compose down`. – tkausl Jul 06 '22 at 09:51

0 Answers0