LoginSignup
1
0

More than 3 years have passed since last update.

VMとDockerについて比較してみた

Last updated at Posted at 2020-02-02

VMとDocker比較

VM

1層目
PCやクラウド場のサーバーなどのインフラがまずある

2層目
Host OSが存在している(Mac OS, Windowsなど)

3層目
Hypervisorと呼ばれる各仮想マシンを実行するソフトウェア、ハードウェアがある
Hypervisorには直接ハードウェアとリンクしているものとHostOS上でアプリケーションとして動いているものの2種類がある。

4層目
Guest OSがある

5層目
バイナリーファイルやアプリケーションに必要なライブラリーなどがある

6層目
アプリケーションがある。

Docker

2層目まではVMと同じ構造

3層目にHypervisorの代わりにDokcer Damonと呼ばれるサービスがあり仮想環境全体を制御している

4層目と5層目はライブラリーとアプリケーション

Screen Shot 2020-02-02 at 11.34.04.png
Virtual Machines vs Docker Containers - Dive Into Docker by Nick Janetakis

DockerはGuest OSがのっからない分、余計なメモリやCPUリソースなどを節約できる。また立ち上げスピードが段違いに速い。
VMはシステムが独立、DockerはアプリがDocker imageとして独立。

参考
https://www.youtube.com/watch?v=TvnZTi_gaNc

1
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0