{"id":473,"date":"2022-10-03T14:29:05","date_gmt":"2022-10-03T14:29:05","guid":{"rendered":"http:\/\/www.scmgalaxy.com\/tutorials\/2016\/02\/23\/simple-docker-workflow-quick-start\/"},"modified":"2025-07-12T05:40:14","modified_gmt":"2025-07-12T05:40:14","slug":"simple-docker-workflow-quick-start","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/simple-docker-workflow-quick-start\/","title":{"rendered":"Docker Tutorials: Basic Workflow with example commands"},"content":{"rendered":"<div><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-3188 size-full aligncenter\" src=\"http:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2016\/02\/simple-docker-workflow.png\" alt=\"docker-workflow\" width=\"600\" height=\"400\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2016\/02\/simple-docker-workflow.png 600w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2016\/02\/simple-docker-workflow-300x200.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/div>\n<div><strong>Simple Docker workflow &#8211; Quick start<\/strong><\/div>\n<div><\/div>\n<div>In this tutorials, I am trying to cover the simple quickstart Docker workflow and for the example, I am creating Ubantu containee and using it to showcase this tutorial.<\/div>\n<div><\/div>\n<div><strong>Step 1 &#8211; Download the Ubantu image container from the Docker Hub<\/strong><\/div>\n<div># docker pull -a ubuntu<\/div>\n<div><\/div>\n<div><strong>Step 2 &#8211; Run the ubuntu container and access to ther \/bin\/bash commands prompt<\/strong><\/div>\n<div># docker run -it ubuntu \/bin\/bash<\/div>\n<div><\/div>\n<div><strong>Step 3 &#8211; Stop the container&nbsp;<\/strong><\/div>\n<div># docker stop container_id<\/div>\n<div><\/div>\n<div><strong>How to get the container id?<\/strong><\/div>\n<div># docker ps -a<\/div>\n<div><\/div>\n<div><strong>Step 4: Start the container again?<\/strong><\/div>\n<div># docker start container_id<\/div>\n<div><\/div>\n<div><strong>Step 5: Exit the running container without stopping the container<\/strong><\/div>\n<div># exit<\/div>\n<div><\/div>\n<div><strong>Step 6: Login the running container for bash prompt<\/strong><\/div>\n<div># sudo docker exec -i -t 2e56ad1705b1 \/bin\/bas<\/div>\n<div><\/div>\n<div><strong>For more &#8211; Refer&nbsp;<\/strong><\/div>\n<div><a href=\"http:\/\/www.scmgalaxy.com\/scm\/package-management\/how-to-get-bash-or-ssh-into-a-running-container-in-background-mode.html\" target=\"_blank\" rel=\"noopener noreferrer\">http:\/\/www.scmgalaxy.com\/scm\/package-management\/how-to-get-bash-or-ssh-into-a-running-container-in-background-mode.html<\/a><\/div>\n\n<div class=\"epyt-gallery\" data-currpage=\"1\" id=\"epyt_gallery_17079\"><figure class=\"wp-block-embed wp-block-embed-youtube is-type-video is-provider-youtube epyt-figure\"><div class=\"wp-block-embed__wrapper\"><iframe loading=\"lazy\"  id=\"_ytid_99405\"  width=\"760\" height=\"427\"  data-origwidth=\"760\" data-origheight=\"427\" src=\"https:\/\/www.youtube.com\/embed\/?enablejsapi=1&#038;autoplay=0&#038;cc_load_policy=0&#038;cc_lang_pref=&#038;iv_load_policy=1&#038;loop=0&#038;rel=1&#038;fs=1&#038;playsinline=0&#038;autohide=2&#038;theme=dark&#038;color=red&#038;controls=1&#038;disablekb=0&#038;\" class=\"__youtube_prefs__  no-lazyload\" title=\"YouTube player\"  data-epytgalleryid=\"epyt_gallery_17079\"  allow=\"fullscreen; accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen data-no-lazy=\"1\" data-skipgform_ajax_framebjll=\"\"><\/iframe><\/div><\/figure><div class=\"epyt-gallery-list\"><div>Sorry, there was a YouTube error.<\/div><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>Simple Docker workflow &#8211; Quick start In this tutorials, I am trying to cover the simple quickstart Docker workflow and for the example, I am creating Ubantu containee and using it to showcase this tutorial. Step 1 &#8211; Download the Ubantu image container from the Docker Hub # docker pull -a ubuntu Step 2 &#8211;&#8230;<\/p>\n","protected":false},"author":1,"featured_media":3188,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","_joinchat":[],"footnotes":""},"categories":[4862],"tags":[1194,567,1188,1187,1203,1204,1201,732,213,1202],"class_list":["post-473","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-docker","tag-container","tag-docker","tag-docker-guide","tag-docker-tutorial","tag-docker-workflow","tag-quickstart","tag-simple","tag-steps","tag-tutorial","tag-workflow"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/473","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=473"}],"version-history":[{"count":5,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/473\/revisions"}],"predecessor-version":[{"id":31452,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/473\/revisions\/31452"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media\/3188"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=473"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=473"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=473"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}