Yes it is giving up, but not only. It is giving up and being able to get back to the actual work you want to be doing.
I worked at a place where people tried using Docker to manage Python and wound up with a bunch of twisty little images that were all misconfigured in a different way. (E.g. default charsets that I’m not sure anybody uses.)
Learning to make sound container images is tricky, but once you got it figured out it is, IMO, a very nice way to distribute software.
Sometimes that's the best option.
But it's giving up correctly*! :)
That’s being pragmatic.
With docker, do you use debugging in pycharm/vscode, or just for compiling/shipping?