LoginSignup
39
36

More than 5 years have passed since last update.

Dockerで特定のコンテナのVolumeのパスを確認する方法

Last updated at Posted at 2016-06-15

DockerコンテナのVolumeのパスはどこになってんだ!
って時のコマンドです。

docker inspect コンテナID

ずらずらっとJSON形式の情報が表示されますが、この中に

 "Mounts": [
        {
            "Source": "/srv/docker/gitlab/gitlab",
            "Destination": "/home/git/data",
            "Mode": "rw",
            "RW": true
        },...

ってな感じで、ホストOSとマウントされているパスがあります。

"Source"がホストOS
"Destination"がコンテナ です。

これでVolumeのパスがどこかわかるはずだす!

39
36
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
39
36