Outline
Using Mount for Volumes
You can create volumes using the --mount
command with the type=volume
key-value pair:
$ docker container run --mount type=volume,src=[volume name],destination=/data,readonly [image]:[tag]
You can create volumes using the --mount
command with the type=volume
key-value pair:
$ docker container run --mount type=volume,src=[volume name],destination=/data,readonly [image]:[tag]