This lab we will map
Lab1: Create a volume on local machine
docker volume ls docker volume create myvol docker volume ls
docker images docker run -it --name mycontainer -v myvol:/app/data alpine cd /app/data touch a exit
To check volume on host
sudo su - cd /var/lib/docker/volumes/myvol/_data ls exit
Lab 2:Map the host directory
docker images docker run -it --name mycontainer1 -v /tmp/test:/app/data alpine touch /app/data/b ls /app/data exit ls /tmp/test