{"id":430,"date":"2020-07-08T14:54:37","date_gmt":"2020-07-08T12:54:37","guid":{"rendered":"https:\/\/www.tnes.dk\/?p=430"},"modified":"2021-04-16T14:20:06","modified_gmt":"2021-04-16T12:20:06","slug":"running-portainer-agent-on-synology-nas","status":"publish","type":"post","link":"https:\/\/www.tnes.dk\/?p=430","title":{"rendered":"Running portainer agent on Synology NAS."},"content":{"rendered":"\n<p>If you want to manage Docker on your Synology NAS, from a Portainer instance running somewhere else, you need to deploy the Portainer agent on your Synology NAS.<\/p>\n\n\n\n<p>The installation guideline for running the agent on a standalone Docker host, can be found at <a rel=\"noreferrer noopener\" href=\"https:\/\/www.portainer.io\/installation\/\" target=\"_blank\">portainer.io<\/a>. <\/p>\n\n\n\n<p>A small correction is needed, as at the Synology DSM, Docker directories are not located at <code>\/var\/lib\/docker<\/code>, but at <code>\/volumeX\/@docker<\/code>.<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>So, to run the Portainer agent, SSH into your Synology NAS and run the following command. Replace <code>volume1 <\/code>with whatever your volume name is.<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-1\" data-shcb-language-name=\"Shell Session\" data-shcb-language-slug=\"shell\"><span><code class=\"hljs language-shell shcb-code-table shcb-line-numbers\"><span class='shcb-loc'><span>sudo docker run -d -p 9001:9001 --name portainer_agent --restart=always -v \/var\/run\/docker.sock:\/var\/run\/docker.sock -v \/volume1\/@docker\/volumes:\/var\/lib\/docker\/volumes portainer\/agent\n<\/span><\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-1\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">Shell Session<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">shell<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you want to manage Docker on your Synology NAS, from a Portainer instance running somewhere else, you need to deploy the Portainer agent on your Synology NAS. The installation guideline for running the agent on a standalone Docker host, can be found at portainer.io. A small correction is needed, as at the Synology DSM, &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.tnes.dk\/?p=430\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Running portainer agent on Synology NAS.&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[50],"tags":[51,52],"class_list":["post-430","post","type-post","status-publish","format-standard","hentry","category-docker","tag-docker","tag-synology","entry"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.tnes.dk\/index.php?rest_route=\/wp\/v2\/posts\/430","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tnes.dk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tnes.dk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tnes.dk\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tnes.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=430"}],"version-history":[{"count":12,"href":"https:\/\/www.tnes.dk\/index.php?rest_route=\/wp\/v2\/posts\/430\/revisions"}],"predecessor-version":[{"id":464,"href":"https:\/\/www.tnes.dk\/index.php?rest_route=\/wp\/v2\/posts\/430\/revisions\/464"}],"wp:attachment":[{"href":"https:\/\/www.tnes.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=430"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tnes.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=430"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tnes.dk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=430"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}