A
A
Alexander2020-12-12 13:20:59
ubuntu
Alexander, 2020-12-12 13:20:59

How to run docker in ubuntu containers on windows 10?

I recently started using docker for development as a local server. I have Windows 10 on it, I installed the Docker Desktop program, deployed docker and created containers for MySQL and PHP

In order for the containers to work faster in the Docker Desktop settings in the Resources section, I indicated
that Ubuntu-18.04 was used for WSL
5fd49b55301f1219019227.jpeg

Before that, I separately installed Ubuntu-18.04 as an application for Windows 10 As I understand it, docker can now be run from the Ubuntu-18.04 console and docker containers will run in the Ubuntu-18.04 environment

I have a problem when I type the docker-compose up --build command in the ubuntu command line, an error occurs because docker does not see the docker-compose.yml file, because all docker settings files and project files are in a folder located on the Windows 10 host system
How can I make it possible to access the project files that are in the windows host system from the home folder on ubuntu by creating symbolic links to folders or something else?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Karabanov, 2020-12-24
@karabanov

There is such an option https://habr.com/ru/post/534504/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question