I use WSL2 and Desktop Container and my system is Windows 11. I create a container(the system used in the container is Ubuntu 20.04) and then connect the container with VSCode (remote docker). I have installed a miniconda in the container. But when I connected the container with VSCode, I can't use any conda commands. It seems that VSCode blocks the miniconda or doesn't recognize it. But I can use conda commands in this container if I access the container with "docker exec"(not with VSCode). When I run "conda -h" in the VSCode, it shows the following information(conda does not work): $ conda -h bash: conda: command not found.
When I run "conda -h" in a container terminal(access with "docker exec"), it shows(conda works): (base) root ➜ / $ conda -h usage: conda [-h] [-V] command ...
conda is a tool for managing and deploying applications, environments and packages.
This problem may be similar to the problem which might cause by the VSCode while connecting a running container(VSCode does not launch Anaconda base Python). But I have no idea why they happened.
Does anybody have any improvement to these problems? Thank you.
Python works all well in both cases. The miniconda was installed into the Ubnutu system after I created the container. Is it the reason that VSCode does not recognize the conda commands?