this post was submitted on 20 Jun 2023
7 points (88.9% liked)

Programming

3347 readers
1 users here now

All things programming and coding related. Subcommunity of Technology.


This community's icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.

founded 2 years ago
MODERATORS
 

So, I've been living under a rock for the last few years and haven't had the chance to use Docker in development. I'm working my way to get up to speed and have grasped the basics, such as Dockerfile, CLI, etc.

What is unclear to me is how to use Docker while I'm actually writing code. Do I run it inside the container and attach a debugger? Or do I develop in the traditional way (setting up my dev machine like it's 2010) and only push the container to a registry once I'm happy with the changes?

How do you guys use it? Is there a typical way at all?

you are viewing a single comment's thread
view the rest of the comments
[–] CatPoop 2 points 1 year ago

I develop .NET and python on windows in Visual Studio and do the debugging there, then when it all looks stable I’ll commit to git. Then on an arm system, the docker files will pull from git to build the containers, and I’ll do the end-to-end testing there, and rely on the debug logs rather than bothering attaching a debugger.