{"id":174,"date":"2016-11-13T05:44:57","date_gmt":"2016-11-13T05:44:57","guid":{"rendered":"http:\/\/blog.catalystlogic.com.au\/?p=174"},"modified":"2026-03-01T01:44:18","modified_gmt":"2026-02-28T14:44:18","slug":"docker-cloud-detailed-logs-in-a-docker-cloud-provisioned-vm","status":"publish","type":"post","link":"http:\/\/54.253.247.134\/?p=174","title":{"rendered":"Docker Cloud &#8211; Detailed Logs in a Docker Cloud Provisioned VM"},"content":{"rendered":"<p>Using docker cloud can result in a black box experience should\u00a0something go wrong.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"823\" height=\"99\" class=\"alignnone size-full wp-image-175 \" src=\"http:\/\/54.253.247.134\/wp-content\/uploads\/2016\/11\/img_5827fb8c043c9.png\" alt=\"\" srcset=\"http:\/\/54.253.247.134\/wp-content\/uploads\/2016\/11\/img_5827fb8c043c9.png 823w, http:\/\/54.253.247.134\/wp-content\/uploads\/2016\/11\/img_5827fb8c043c9-300x36.png 300w, http:\/\/54.253.247.134\/wp-content\/uploads\/2016\/11\/img_5827fb8c043c9-768x92.png 768w\" sizes=\"auto, (max-width: 823px) 100vw, 823px\" \/><\/p>\n<p>This is especially the case when you provision the node from the cloud UI.<\/p>\n<p>Building a stack with <a href=\"https:\/\/github.com\/docker\/dockercloud-authorizedkeys\">Docker\/Dockercloud\u00a0-AuthorisedKeys<\/a>\u00a0however, can get you SSH access, to poke around inside.<\/p>\n<div class=\"line number1 index0 alt2\"><\/div>\n<div class=\"line number8 index7 alt1\">\n<pre class=\"lang:yaml decode:true\">authorizedkeys:\n\u00a0\u00a0image: dockercloud\/authorizedkeys\n\u00a0\u00a0deployment_strategy: every_node\n\u00a0\u00a0autodestroy: always\n\u00a0\u00a0environment:\n\u00a0\u00a0\u00a0\u00a0- \"AUTHORIZED_KEYS=ssh-rsa h38Fh4w89fdlx-s...304KJbhn45==\"\n\u00a0\u00a0volumes:\n\u00a0\u00a0\u00a0\u00a0- \/root:\/user:rw\n\n<\/pre>\n<div class=\"line number1 index0 alt2\"><\/div>\n<p>This will let you add root access via your SSH cert.<\/p>\n<\/div>\n<p>Ensure you also open up port 22 on your VM<\/p>\n<p>Once inside, you can take a peek at various logs using a couple of methods.<\/p>\n<pre class=\"lang:sh decode:true  \">docker logs containerName<\/pre>\n<pre class=\"lang:sh decode:true\">cat \/var\/log\/upstart\/dockercloud-agent.log<\/pre>\n<pre class=\"lang:sh decode:true \">cat \/var\/log\/dockercloud\/docker.log<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Using docker cloud can result in a black box experience should\u00a0something go wrong. This is especially the case when you provision the node from the cloud UI. Building a stack with Docker\/Dockercloud\u00a0-AuthorisedKeys\u00a0however, can get you SSH access, to poke around inside. authorizedkeys: \u00a0\u00a0image: dockercloud\/authorizedkeys \u00a0\u00a0deployment_strategy: every_node \u00a0\u00a0autodestroy: always \u00a0\u00a0environment: \u00a0\u00a0\u00a0\u00a0- \"AUTHORIZED_KEYS=ssh-rsa h38Fh4w89fdlx-s...304KJbhn45==\" \u00a0\u00a0volumes: \u00a0\u00a0\u00a0\u00a0- \/root:\/user:rw <a class=\"read-more\" href=\"http:\/\/54.253.247.134\/?p=174\">...continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-174","post","type-post","status-publish","format-standard","hentry","category-docker"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"http:\/\/54.253.247.134\/index.php?rest_route=\/wp\/v2\/posts\/174","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/54.253.247.134\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/54.253.247.134\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/54.253.247.134\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/54.253.247.134\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=174"}],"version-history":[{"count":1,"href":"http:\/\/54.253.247.134\/index.php?rest_route=\/wp\/v2\/posts\/174\/revisions"}],"predecessor-version":[{"id":223,"href":"http:\/\/54.253.247.134\/index.php?rest_route=\/wp\/v2\/posts\/174\/revisions\/223"}],"wp:attachment":[{"href":"http:\/\/54.253.247.134\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=174"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/54.253.247.134\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=174"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/54.253.247.134\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=174"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}