Ie, if I do:

$ docker inspect -f '{{ .Mounts }}' base-hostSrcNv

I might get:

[{bind  /dir/in/container /dir/on/host   true }]

The meaning of /dir/in/container and /dir/on/host is pretty easy to understand. But what's the last boolean value represent?

1 Answer 1


This is the write or read mode on the container. But you can enter this command for more detail in the return:

    docker inspect --format="{{json .Mounts}}" base-hostSrcNv

You can also use jq (apt install jq) tool to have beautiful json output:

    docker inspect --format="{{json .Mounts}}" base-hostSrcNv | jq

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.