{"id":6672,"date":"2022-07-28T13:55:31","date_gmt":"2022-07-28T13:55:31","guid":{"rendered":"https:\/\/www.garysieling.com\/blog\/?p=6672"},"modified":"2022-08-07T18:21:26","modified_gmt":"2022-08-07T18:21:26","slug":"docker-local-volume-share-local-folder-includes-minikube-instructions","status":"publish","type":"post","link":"https:\/\/www.garysieling.com\/blog\/docker-local-volume-share-local-folder-includes-minikube-instructions\/","title":{"rendered":"Docker Local Volume &#8211; share local folder, includes minikube instructions"},"content":{"rendered":"\n<p>Run the ubuntu container, with your local path mounted at the same location in the container:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>docker run \\\n  -it --rm \\\n  -v $(pwd):$(pwd) ubuntu<\/code><\/pre>\n\n\n\n<p>If you&#8217;re running the container using minikube as a replacement for Docker Desktop, you&#8217;ll need to open a separate console session first and do:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>eval $(minikube docker-env)\nminikube mount $(pwd):$(pwd)<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Run the ubuntu container, with your local path mounted at the same location in the container: If you&#8217;re running the container using minikube as a replacement for Docker Desktop, you&#8217;ll need to open a separate console session first and do:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[6],"tags":[450],"aioseo_notices":[],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/6672"}],"collection":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/comments?post=6672"}],"version-history":[{"count":1,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/6672\/revisions"}],"predecessor-version":[{"id":6674,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/6672\/revisions\/6674"}],"wp:attachment":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/media?parent=6672"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/categories?post=6672"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/tags?post=6672"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}