{"id":158,"date":"2026-03-30T12:59:56","date_gmt":"2026-03-30T11:59:56","guid":{"rendered":"https:\/\/www.test2.laoku.co.uk\/?p=158"},"modified":"2026-03-30T12:59:56","modified_gmt":"2026-03-30T11:59:56","slug":"playing-in-container","status":"publish","type":"post","link":"https:\/\/www.test2.laoku.co.uk\/index.php\/2026\/03\/30\/playing-in-container\/","title":{"rendered":"Playing in container"},"content":{"rendered":"\n<div class=\"wp-block-group has-base-background-color has-background has-global-padding is-layout-constrained wp-container-core-group-is-layout-cc5218b1 wp-block-group-is-layout-constrained\" style=\"padding-top:var(--wp--preset--spacing--20);padding-right:var(--wp--preset--spacing--30);padding-bottom:var(--wp--preset--spacing--20);padding-left:var(--wp--preset--spacing--30)\">\n<p class=\"has-text-align-left\" style=\"border-style:none;border-width:0px\">So there are lots of times you need to work inside a docker container. Being able to do so is a simple but important skill. Easily achieved as below:-<\/p>\n\n\n\n<pre class=\"wp-block-code alignwide\"><code>#If your not sure, locate the name of the docker container you want to play in\n\ndocker ps\n\n#Then, jump into a bash terminal\ndocker exec -it container-name bash\n<\/code><\/pre>\n\n\n\n<p>The &#8216;-it&#8217; is the switch\/option for interactive terminal . Without it, it will start a bash terminal, but you wont see anything and wont be able to &#8216;interact&#8217; with it!<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>So there are lots of times you need to work inside a docker container. Being able to do so is a simple but important skill. Easily achieved as below:- The &#8216;-it&#8217; is the switch\/option for interactive terminal . Without it, it will start a bash terminal, but you wont see anything and wont be able [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,10,1],"tags":[14,12,13],"class_list":["post-158","post","type-post","status-publish","format-standard","hentry","category-computers","category-docker","category-uncategorised","tag-command","tag-docker","tag-linux"],"_links":{"self":[{"href":"https:\/\/www.test2.laoku.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/158","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.test2.laoku.co.uk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.test2.laoku.co.uk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.test2.laoku.co.uk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.test2.laoku.co.uk\/index.php\/wp-json\/wp\/v2\/comments?post=158"}],"version-history":[{"count":1,"href":"https:\/\/www.test2.laoku.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/158\/revisions"}],"predecessor-version":[{"id":163,"href":"https:\/\/www.test2.laoku.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/158\/revisions\/163"}],"wp:attachment":[{"href":"https:\/\/www.test2.laoku.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=158"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.test2.laoku.co.uk\/index.php\/wp-json\/wp\/v2\/categories?post=158"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.test2.laoku.co.uk\/index.php\/wp-json\/wp\/v2\/tags?post=158"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}