{"id":6043,"date":"2018-12-04T12:54:48","date_gmt":"2018-12-04T12:54:48","guid":{"rendered":"http:\/\/www.garysieling.com\/blog\/?p=6043"},"modified":"2018-12-04T12:54:48","modified_gmt":"2018-12-04T12:54:48","slug":"using-apt-in-a-docker-dockerfile","status":"publish","type":"post","link":"https:\/\/www.garysieling.com\/blog\/using-apt-in-a-docker-dockerfile\/","title":{"rendered":"Using apt in a docker Dockerfile"},"content":{"rendered":"<p>If you do this in a Dockerfile, you&#8217;ll get a warning:<\/p>\n<pre>\nRUN apt install -y git\n<\/pre>\n<p>Warning:<\/p>\n<pre>\nWARNING: apt does not have a stable CLI interface. Use with caution in scripts.\n<\/pre>\n<p>Do this instead:<\/p>\n<pre>\nRUN apt-get install -y git\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Fixing a docker warning using apt<\/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":[9],"tags":[173,338],"aioseo_notices":[],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/6043"}],"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=6043"}],"version-history":[{"count":0,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/6043\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/media?parent=6043"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/categories?post=6043"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/tags?post=6043"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}