79180969

Date: 2024-11-12 11:54:23
Score: 0.5
Natty:
Report link

-v or --volume: This option is used by users in the docker run command to set up a bind mount at the time of the container run, mapping a host path to a container path.

Binds in HostConfig: This only visible when you inspect a container, shows the actual bind mounts applied to the container as configured by -v or --mount or --volume. It’s not a command but a record of the mount configuration. it is recorded as part of the docker image build

If we summerise, -v will create the mount, and Binds will reflect it in Docker’s internal configuration.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Yaseen