Skip to content

source path is not contained in array "mounts" when querying a container #102

@gitmors

Description

@gitmors

Good day,

I have noticed that when I query information about a container via the docker API so something like this 'GET /containers/{id}/json' then I get back an object which contains among other things an array called "Mounts". In this array each volume is contained as a separate object, for example:

[{
"Destination":"/container/path",
"Driver": "local-persist",
"Mode":"",
"Name": "test",
"Propagation":""
"RW":true,
"Source":"",
"Type": "volume"
}]

Unfortunately, the "Source":"" (source path) is not transferred here. With the default driver "local" it is. Unfortunately I need this value for one of my queries. Maybe there is a quick solution for this problem.

LocalPersist

Thank you.
Regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions