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?

  • @TitanLaGrange
    link
    English
    4
    edit-2
    1 year ago

    I don’t use Docker for development. I find that it just gets in the way, slows me down, and distracts me. It might be a different experience for software stacks that I don’t use. I mostly use C#, Blazor, or React Native while coding in a Windows environment. I’m quite comfortable on the Linux terminal as well, but my current professional work all targets Windows deployments.

    I do use Docker for other systems that the thing I am working on needs to connect to. For example, I love MailHog for running a local email server for testing. I usually set up a Docker Compose file for a few external systems that my app needs to use and run them while I’m testing, with my app either running directly on my workstation or in a VMWare machine.

    The only exception to this is when I write a Docker Desktop extension, where the container is necessary for testing.