{"id":552,"date":"2017-06-28T00:49:49","date_gmt":"2017-06-28T01:19:49","guid":{"rendered":"http:\/\/www.mind4y.co\/itstuff\/2017\/06\/28\/docker-basic-comands\/"},"modified":"2020-03-19T23:29:58","modified_gmt":"2020-03-19T23:59:58","slug":"docker-basic-comands","status":"publish","type":"post","link":"https:\/\/ultering.com\/it4us\/?p=552","title":{"rendered":"CONTAINER: DOCKER &#8211; BASIC COMANDS"},"content":{"rendered":"<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">docker pull mysql\r\n\r\n#lista of the images downloadeds\r\ndoker images\r\n\r\n#must run the docker instance and download the image\r\n#-e enviroment variables\r\n#-d set to run as a Deamon\r\ndocker run --name database -e MYSQL_ROOT_PASSWORD=teste123 -d mysql\r\n\r\n#all docker containers at executing state\r\n# -a show all even the ones not ate executing state\r\ndocker ps -a\r\n\r\n#installing a mysql with a wordpress\r\n#80:80 -&gt; first is the ip the docker map externally , the other is local\r\ndocker run --name blog-alura --link database:mysql -e WORDPRESS_DB_PASSWORD=test123 -p 80:80 -d wordpress\r\n\r\n#accessing the batch of the container\r\n#-i to access the console\r\n#-t simular o tty\r\n#o que quero executar \"bash\"\r\n#nome do container\r\ndocker exec -i -t bash\r\n#run\r\ndocker run -i -t bash<\/pre>\n<p>&nbsp;<\/p>\n<!--CusAds0-->\n<div style=\"font-size: 0px; height: 0px; line-height: 0px; margin: 0; padding: 0; clear: both;\"><\/div>","protected":false},"excerpt":{"rendered":"<p>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 &#8211;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 &#8230; <a href=\"https:\/\/ultering.com\/it4us\/?p=552\" class=\"more-link\">Read More<span class=\"screen-reader-text\"> &#8220;CONTAINER: DOCKER &#8211; BASIC COMANDS&#8221;<\/span> &raquo;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"categories":[5],"tags":[2,3,4,6],"class_list":["post-552","post","type-post","status-publish","format-standard","hentry","category-hosting","tag-cmds","tag-commands","tag-docker","tag-hosting"],"_links":{"self":[{"href":"https:\/\/ultering.com\/it4us\/index.php?rest_route=\/wp\/v2\/posts\/552","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ultering.com\/it4us\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ultering.com\/it4us\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ultering.com\/it4us\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ultering.com\/it4us\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=552"}],"version-history":[{"count":1,"href":"https:\/\/ultering.com\/it4us\/index.php?rest_route=\/wp\/v2\/posts\/552\/revisions"}],"predecessor-version":[{"id":2653,"href":"https:\/\/ultering.com\/it4us\/index.php?rest_route=\/wp\/v2\/posts\/552\/revisions\/2653"}],"wp:attachment":[{"href":"https:\/\/ultering.com\/it4us\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=552"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ultering.com\/it4us\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=552"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ultering.com\/it4us\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=552"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}