Scenario 1: Single Development Environment
If only one language is developed and one virtual machine is started, will docker use more resources?
Scene 2: Multi-environment Development
Both php development and python are required. The two programs need different environments. If vagrant is to be developed, two vagrant virtual machines need to be started, which takes up a lot of resources. Would it be better to choose Docker at this time?
Docker is not a virtual machine, it is process isolation and consumes very little resources.
Vagrant is a package made on a virtual machine, which consumes resources.
If you originally used Linux, choose Docker if it is Scene 1 or Scene 2.
If you are using OSX or Windows, you need to turn on the virtual machine. vagrant is simpler in scenario one, and Docker is needed in vagrant in scenario two.