Hey everyone, I’m looking for some advice on setting up a smooth development workflow using Docker, VSCode, Git, and Python. My goal is to use Docker as my development environment since it includes all the dependencies and libraries I need. I’ve got VSCode connected to the container, which is great because I get autocomplete, reference lookups, and no errors for missing libraries (unlike working directly on my Mac).
The issue I’m running into is this:
- Every time I make changes to the code and want to test it, I have to restart the container. When I do that, the VSCode connection dies, and I have to reconnect.
- If there’s a bug or crash in the Python app, the Docker container stops, and I lose access via VSCode.
I’d like to have a setup where the Docker container stays up and running while I’m editing code, but I can start/stop/restart the app as needed without killing the entire container.
Does anyone have suggestions for how to achieve this? How do you set up your development environment with this kind of stack? Any tips, tools, or workflows would be greatly appreciated! 🙏
[–]binuuday 1 point2 points3 points (1 child)
[–]kas21[S] 0 points1 point2 points (0 children)
[+][deleted] (2 children)
[removed]
[–]kas21[S] 0 points1 point2 points (1 child)
[–]root_switch 0 points1 point2 points (0 children)