Docker - How to access a volume not attached to a container?

前端 未结 3 1641
终归单人心
终归单人心 2021-01-13 09:09

I have (had) a data container which has a volume used by other containers (--volumes-from).

The data container has accidentally been removed.

Thankfully the

3条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-13 09:29

    Not entirely sure but you might try

    docker run -i -t --volumes-from yourvolume ubuntu /bin/bash
    

    You should then be able to access the directory, i think.

提交回复
热议问题