0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Docker Volumeの中身を探す (Mac編)

Posted at

Docker Volumeの 中身を見たいと思ったが
Windowsとは仕様が異なるようで、苦戦していたところ、
w0o0ps さんの記事を見つけて、、救われました泣。

方法2: nsenterを使う (こっちがオヌヌメ) で紹介されている、

$ docker run -it --privileged --pid=host debian nsenter -t 1 -m -u -n -i sh

で nsenterを使う やり方が秀逸でした。

まず、
$ docker volume ls

で  volumeの居場所を確認してメモしておく。

その後、

$ docker run -it --privileged --pid=host debian nsenter -t 1 -m -u -n -i sh

で nsenterを実行し、

lsコマンドで先ほどメモした、volumeを見にいく。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?