Docker Community Forums

Share and learn in the Docker community.

Not able to mount libraries inside docker containers to docker volume

I have created docker volume via command

docker volume create --name Bxpwr_volume

Mounting library present in the container into docker volume during docker run

docker run -d  --name   mbus-docker -it --rm --mount type=volume,source=Bxpwr_volume,target=/Bxpwr/mbus/lib  mbus-docker


docker run -d  --name   murata-docker -it --rm --mount type=volume,source=Bxpwr_volume,target=/Bxpwr/murata/lib murata-docker

I do inspect of the docker volume

docker volume inspect Bxpwr_volume 

which gives me below

[
    {
        "CreatedAt": "2019-08-02T07:23:32+01:00",
        "Driver": "local",
        "Labels": {},
        "Mountpoint": "/var/lib/docker/volumes/Bxpwr_volume/_data",
        "Name": "Bxpwr_volume",
        "Options": {},
        "Scope": "local"
    }
]

The mount path /var/lib/docker/volumes/Bxpwr_volume/_data -> contains mbus.a library but cannot see murata.lib .

It shows only the first-container library in the docker volume

I observed that it is allowing only one library at the mount path .