title: Docker MariaDB volume not found in container?
body: <p>This <code>docker-compose.yml</code> file works fine:</p>
  
  <pre><code>version: '3'
  services:
    app:
      build:
        context: .
        dockerfile: Dockerfile
      image: docker-test
      container_name: docker-test
      ports:
        - 9000:80
      volumes:
        - '/var/www/docker-test/:/srv/app/'      
    db:
      image: mariadb:10.4
      container_name: docker-test-db
      ports:
        - 33061:3306
      restart: always
      environment:
        MYSQL_ROOT_PASSWORD: example
      volumes:
        - '/docker-db-data/docker-test/:/var/lib/mysql/'
  </code></pre>
  
  <p>The volume in the host is created fine (<code>/docker-db-data/docker-test/</code>) but when I "SSH" to the container, I can't seem to find <code>/var/lib/mysql</code> E.g.,</p>
  
  <pre><code>[root@localhost docker]# docker exec -it docker-test bash
  root@2d03e775f531:# ls /var/lib/mysql
  ls: cannot access '/var/lib/mysql': No such file or directory
  </code></pre>
  
  <p>Is this expected? If not, where is it actually located?</p>