LoginSignup
0
3

More than 3 years have passed since last update.

dockerのvolumeとbindmountsの違い

Posted at

この記事の目的

dockerのvolumeとbindmountsの違いについてまとめる

volumeとは

dbなどのデータを永続化させるためのものでbindmountと違うのはbindmoutはhostマシーンにデータを置くのに対してvolumeはdocker上に置くので完全に他のcontainerと独立できる。

bind mountとは

補足:tmpfsマウント

実はtmpfsマウントと言うのもあってこれはhostマシーンにもvolumeにも保存しないでメモリに保存されると言うもの。セキュリティ的にどちらにも置けないと言う特殊状況でのみ使うものなのであまり関係ない。

0
3
0

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
0
3