亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

單純的開發(fā)環(huán)境來說 Docker 和 Vagrant 該如何選擇?
PHP中文網(wǎng)
PHP中文網(wǎng) 2017-04-21 10:55:56
0
1
740

場景一:單一開發(fā)環(huán)境

只進行單一語言的開發(fā),啟動一臺虛擬機,這種情況 docker 占用的資源會不會比較多?

場景二:多環(huán)境開發(fā)

既要進行 php 開發(fā),又要進行 python,兩個程序需要不同的環(huán)境,vagrant 進行開發(fā)的話,需要啟動兩個 vagrant 虛擬機才行,占用資源多,這時候選擇 Docker 會不會更好?

PHP中文網(wǎng)
PHP中文網(wǎng)

認證0級講師

reply all(1)
小葫蘆

Docker is not a virtual machine, it is process isolation and consumes very little resources.
Vagrant is an encapsulation on the virtual machine, and the virtual machine itself consumes resources.

If you are originally using Linux, if it is scenario one or two, choose Docker

If you are using OSX or Windows, you need to open a virtual machine. In the first scenario, vagrant is easier. In the second scenario, you need to install Docker in vagrant

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template