How can you start all containerized services described in docker-compose file directly from Windows when the docker-compose.yml file is stored in WSL?
Experience Level: Junior
Tags: WSL
Answer
- Install Remote-WSL extension in Visual Studio Code.
- Connect to WSL using Remote-WSL: New WSL Window.
- Run terminal
- Type docker-compose up
Related WSL job interview questions
How can you do a backup of your WSL distro?
WSL JuniorHow can you run Windows commands from Linux?
WSL JuniorWhat is the advantage of Visual Studio Code Remote-WSL extension?
WSL JuniorHow can you edit files stored in WSL from Visual Studio Code that is running on Windows?
WSL JuniorYou use Docker integrated with WSL2. What best practice should you follow regarding location of source codes that you work on?
WSL Junior