https://multipass.run/docs/docker-tutorial
And I second the other commenter's recommendation of VSCode's Remote Container extension.
https://code.visualstudio.com/docs/remote/containers
And possibly using Podman instead of Docker.
https://opensource.com/article/21/7/vs-code-remote-container...