I've always liked using docker with wp locally due to php versions being mismatched with prod environments. Though one thing I would say is that, if the goal is just to run wp locally & kept containerised, I would suggest a tool like DevKinsta (kinsta.com/devkinsta/), which uses docker under the hood but also handles setting up local mail testing & a fancy little ui to set defaults for new sites.
I've always liked using docker with wp locally due to php versions being mismatched with prod environments. Though one thing I would say is that, if the goal is just to run wp locally & kept containerised, I would suggest a tool like DevKinsta (kinsta.com/devkinsta/), which uses docker under the hood but also handles setting up local mail testing & a fancy little ui to set defaults for new sites.
Thanks, Ashley!