docker pull mysql #lista of the images downloadeds doker images #must run the docker instance and download the image #-e enviroment variables #-d set to run as a Deamon docker run --name database -e MYSQL_ROOT_PASSWORD=teste123 -d mysql #all docker containers at executing state # -a show all even the ones not ate executing state docker ps -a #installing a mysql with a wordpress #80:80 -> first is the ip the docker map externally , the other is local docker run --name blog-alura --link database:mysql -e WORDPRESS_DB_PASSWORD=test123 -p 80:80 -d wordpress #accessing the batch of the container #-i to access the console #-t simular o tty #o que quero executar "bash" #nome do container docker exec -i -t bash #run docker run -i -t bash