I'm trying run on docker a mariadb instance with specific port because I ready have a mariadb server run on the same server on default port (3306). I'm using the following command
docker run --name mariadb_develop -p 3307:3307 -e MYSQL_ROOT_PASSWORD=superpass -d mariadb -v /var/lib/mysql-develop:/var/lib/mysql mysql
but if I try to connect to 3307 port mysql -uroot -psuperpass -P3307 I'm connecting to mariadb server, not to mariadb's docker.
Can I run mariadb's docker with a mariadb-server local installation?