{"id":3601,"date":"2023-10-10T14:57:11","date_gmt":"2023-10-10T14:57:11","guid":{"rendered":"http:\/\/wordpress.nationaltrail.k12.oh.us\/ittech\/?p=3601"},"modified":"2023-10-10T14:57:11","modified_gmt":"2023-10-10T14:57:11","slug":"connecting-to-a-docker-container-using-ubuntu-terminal","status":"publish","type":"post","link":"https:\/\/wordpress.nationaltrail.k12.oh.us\/ittech\/2023\/10\/10\/connecting-to-a-docker-container-using-ubuntu-terminal\/","title":{"rendered":"Connecting to a Docker Container Using Ubuntu Terminal"},"content":{"rendered":"<ul>\n<li>NOTE: You can do other commands such as copy files from the container to your VM, install tools in the container, and anything that can be done on a regular Ubuntu install. For more information, look in the <a href=\"https:\/\/docs.docker.com\/reference\/\">DOCKER DOCUMENTATION.<\/a><\/li>\n<li>\u00a0Assumptions\n<ul>\n<li>You are using Ubuntu\/Debian-based OS<\/li>\n<li>You have Docker installed<\/li>\n<li>You have a running container<\/li>\n<li>You have access to the docker environment<\/li>\n<\/ul>\n<\/li>\n<li>Get the docker ID and list the containers\n<ul>\n<li>Open Ubuntu Terminal\n<ul>\n<li>docker ps\n<ul>\n<li>This allows you to get a list of all docker containers<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>The docker ID is the first string of numbers and letters before your container\n<ul>\n<li><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-3602\" src=\"http:\/\/wordpress.nationaltrail.k12.oh.us\/ittech\/wp-content\/uploads\/sites\/2\/2023\/10\/docker-ps-300x24.png\" alt=\"\" width=\"447\" height=\"36\" srcset=\"https:\/\/wordpress.nationaltrail.k12.oh.us\/ittech\/wp-content\/uploads\/sites\/2\/2023\/10\/docker-ps-300x24.png 300w, https:\/\/wordpress.nationaltrail.k12.oh.us\/ittech\/wp-content\/uploads\/sites\/2\/2023\/10\/docker-ps-768x60.png 768w, https:\/\/wordpress.nationaltrail.k12.oh.us\/ittech\/wp-content\/uploads\/sites\/2\/2023\/10\/docker-ps.png 802w\" sizes=\"auto, (max-width: 447px) 100vw, 447px\" \/><\/li>\n<\/ul>\n<\/li>\n<li>Enter the docker container\n<ul>\n<li>docker exec -it &lt;your container ID&gt; bash\n<ul>\n<li>docker exec -it 175cb158268e bash<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>You can now execute commands in the container just as you could in a regular Ubuntu Server.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>NOTE: You can do other commands such as copy files from the container to your VM, install tools in the container, and anything that can be done on a regular Ubuntu install. For more information, look in the DOCKER DOCUMENTATION. \u00a0Assumptions You are using Ubuntu\/Debian-based OS You have Docker installed You have a running container &hellip; <a href=\"https:\/\/wordpress.nationaltrail.k12.oh.us\/ittech\/2023\/10\/10\/connecting-to-a-docker-container-using-ubuntu-terminal\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Connecting to a Docker Container Using Ubuntu Terminal<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1303,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"class_list":["post-3601","post","type-post","status-publish","format-standard","hentry","category-it-support"],"_links":{"self":[{"href":"https:\/\/wordpress.nationaltrail.k12.oh.us\/ittech\/wp-json\/wp\/v2\/posts\/3601","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.nationaltrail.k12.oh.us\/ittech\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wordpress.nationaltrail.k12.oh.us\/ittech\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.nationaltrail.k12.oh.us\/ittech\/wp-json\/wp\/v2\/users\/1303"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.nationaltrail.k12.oh.us\/ittech\/wp-json\/wp\/v2\/comments?post=3601"}],"version-history":[{"count":1,"href":"https:\/\/wordpress.nationaltrail.k12.oh.us\/ittech\/wp-json\/wp\/v2\/posts\/3601\/revisions"}],"predecessor-version":[{"id":3603,"href":"https:\/\/wordpress.nationaltrail.k12.oh.us\/ittech\/wp-json\/wp\/v2\/posts\/3601\/revisions\/3603"}],"wp:attachment":[{"href":"https:\/\/wordpress.nationaltrail.k12.oh.us\/ittech\/wp-json\/wp\/v2\/media?parent=3601"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wordpress.nationaltrail.k12.oh.us\/ittech\/wp-json\/wp\/v2\/categories?post=3601"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wordpress.nationaltrail.k12.oh.us\/ittech\/wp-json\/wp\/v2\/tags?post=3601"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}