Complete the code to create a Docker volume named 'data_vol'.
docker volume [1] data_volThe docker volume create command creates a new volume named 'data_vol'.
Complete the code to run a container with a bind mount from host directory '/host/data' to container '/app/data'.
docker run -v [1]:/app/data myimageThe bind mount source is the host directory /host/data, which is mounted to /app/data inside the container.
Fix the error in the command to mount a volume named 'myvol' to '/data' in the container.
docker run -v [1]:/data myimageWhen mounting a named volume, only the volume name is given before the colon. The correct syntax is -v myvol:/data. Option D provides just the volume name for the source.
Fill all three blanks to create a bind mount from host directory '/var/log' to container directory '/logs' with read-only access.
docker run -v [1]:[2]:[3] myimage
The bind mount source is /var/log on the host, mounted to /logs in the container with ro (read-only) access.
Fill all three blanks to create a volume mount with a named volume 'cache_vol', mounted to '/cache' in the container with read-write access.
docker run -v [1]:[2]:[3] myimage
The named volume cache_vol is mounted to /cache inside the container with rw (read-write) access.