@stratboy Docker’s a popular choice because it puts everything you need in containers that can start and stop at will, or even destroy and re-create in a predictable fashion. Valet on the other hand, yes, it gives you a web server, but anything else your application needs (a database, a Redis cache, a mail server, Mailhog, Min.io, and so on) you need to install on your machine.
If you’re installing them on your machine, you can only have one version of each installed at one time. With something like Docker, you can have containers with different versions of things. So for example, if you’re working on one project that needs PHP 7.4 and another than needs 8.0, you can have those version defined in your Docker environment. If you’re relying on the PHP version installed on your machine, well, good luck. You’re going to constantly having to swap versions using something like Homebrew if on macOS.
So ion short, Valet is just a glorified web server running on your machine. Docker is an actual development environment.