title: How can I access my docker maria db?
body: <p>My main question is that after I have created a docker container for my mariadb with the command <code>docker run --name db -e MYSQL_ROOT_PASSWORD=test -d -p 3306:3306 mariadb</code> how can I access the sql db?</p>
  
  <p>Somewhere I have seen a solution using a temporal (after exit the container is deleted) container, but cannot find it anymore.</p>
  
  <p>I am searching for a command like: <code>sudo docker exec -it [other flags] [command] db</code>.</p>