How to mount docker volume?

Today my question is why we need to mount volume in containers? Let’s try to understand what the logic behind it. Focus on it what I am saying when we launch a container it takes name space from our host hard derive means every container will save their data into their name space into host hard derive.