Openvscode-server - How to share Python between host and container

Hello, I’m using the openvscode-server docker image and I’ve installed the Python extension. Obviously, you still need to install Python in the system: what I did was launching this command in the console of VS Code:

sudo apt-get install python3 python3-venv python3-pip

Now everything works fine and the packages are installed in the container itself.

Today I updated the container, and those packages got lost/removed. I had to re-install them.

What’s the best way to handle the installation of those packages? Is there a way to install them in the host machine and make them visible within the container?

Thanks for the hard work and eventual support!

By using our mods :slight_smile: Linuxserver Container Mods

1 Like

Thank you so much! Didn’t know the mods existed :slight_smile:

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.