{"id":200,"date":"2023-10-13T14:29:58","date_gmt":"2023-10-13T14:29:58","guid":{"rendered":"https:\/\/dinodevs.com\/blog\/?p=200"},"modified":"2024-06-11T19:57:43","modified_gmt":"2024-06-11T16:57:43","slug":"installing-portainer-on-docker","status":"publish","type":"post","link":"https:\/\/dinodevs.com\/blog\/installing-portainer-on-docker\/","title":{"rendered":"Installing Portainer on Docker"},"content":{"rendered":"\n<p>I found Portainer to be just what I needed to manage the containers of my small Docker servers. You can install it easily as a container running on the same Docker server that you want it to manage.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Setting Portainer up<\/h2>\n\n\n\n<p>To install it, you first need to create a volume so that it can store your accounts and preferences:<\/p>\n\n\n\n<pre class=\"wp-block-code lang-bash\"><code>sudo docker volume create portainer_data<\/code><\/pre>\n\n\n\n<p>Then you can deploy the container using the official Portainer image (please note that in the following command, I removed the <code>-p 8000:8000<\/code> port mapping as I will only be using the HTTPS protocol to connect to it):<\/p>\n\n\n\n<pre class=\"wp-block-code lang-bash\"><code>sudo docker run -d -p 9443:9443 --name portainer --restart=always -v \/var\/run\/docker.sock:\/var\/run\/docker.sock -v portainer_data:\/data portainer\/portainer-ce:latest<\/code><\/pre>\n\n\n\n<p>Now, you can visit though <code>https<\/code> (under port <code>9443<\/code>) the deployed Portainer app to create an admin account. For example, if your server is located at <code>10.10.1.30<\/code>, you can access Portainer at:<\/p>\n\n\n\n<pre class=\"wp-block-code lang-bash\"><code>https:&#47;&#47;10.10.1.30:9443\/<\/code><\/pre>\n\n\n\n<p>Please note that your browser will not trust the certificate, thus you will have to &#8220;Accept the risks&#8221; and proceed.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Updating Portainer<\/h2>\n\n\n\n<p>Updating Portainer to the latest version is relatively simple. First, you will have to pull the latest version of the container using:<\/p>\n\n\n\n<pre class=\"wp-block-code lang-bash\"><code> sudo docker pull portainer\/portainer-ce:latest<\/code><\/pre>\n\n\n\n<p>Then you can just recreate the container without deleting the volume holding your configuration:<\/p>\n\n\n\n<pre class=\"wp-block-code lang-bash\"><code>sudo docker stop portainer\nsudo docker rm portainer\nsudo docker run -d -p 9443:9443 --name portainer --restart=always -v \/var\/run\/docker.sock:\/var\/run\/docker.sock -v portainer_data:\/data portainer\/portainer-ce:latest<\/code><\/pre>\n\n\n\n<p>As simple as that! \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I found Portainer to be just what I needed to manage the containers of my small Docker servers. You can install it easily as a container running on the same Docker server that you want it to manage. Setting Portainer up To install it, you first need to create a volume so that it can [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":204,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[16,4,14],"class_list":["post-200","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-docker","tag-linux","tag-server"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Installing Portainer on Docker - DinoDevs<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/dinodevs.com\/blog\/installing-portainer-on-docker\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Installing Portainer on Docker - DinoDevs\" \/>\n<meta property=\"og:description\" content=\"I found Portainer to be just what I needed to manage the containers of my small Docker servers. You can install it easily as a container running on the same Docker server that you want it to manage. Setting Portainer up To install it, you first need to create a volume so that it can [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/dinodevs.com\/blog\/installing-portainer-on-docker\/\" \/>\n<meta property=\"og:site_name\" content=\"DinoDevs\" \/>\n<meta property=\"article:published_time\" content=\"2023-10-13T14:29:58+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-06-11T16:57:43+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/dinodevs.com\/blog\/wp-content\/uploads\/2023\/10\/portainer-login.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1024\" \/>\n\t<meta property=\"og:image:height\" content=\"346\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Athanasios Grammatopoulos\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Athanasios Grammatopoulos\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/dinodevs.com\/blog\/installing-portainer-on-docker\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/dinodevs.com\/blog\/installing-portainer-on-docker\/\"},\"author\":{\"name\":\"Athanasios Grammatopoulos\",\"@id\":\"https:\/\/dinodevs.com\/blog\/#\/schema\/person\/fccac7bcc5374cede43de49a450dfaf3\"},\"headline\":\"Installing Portainer on Docker\",\"datePublished\":\"2023-10-13T14:29:58+00:00\",\"dateModified\":\"2024-06-11T16:57:43+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/dinodevs.com\/blog\/installing-portainer-on-docker\/\"},\"wordCount\":191,\"publisher\":{\"@id\":\"https:\/\/dinodevs.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/dinodevs.com\/blog\/installing-portainer-on-docker\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/dinodevs.com\/blog\/wp-content\/uploads\/2023\/10\/portainer-login.png\",\"keywords\":[\"docker\",\"linux\",\"server\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/dinodevs.com\/blog\/installing-portainer-on-docker\/\",\"url\":\"https:\/\/dinodevs.com\/blog\/installing-portainer-on-docker\/\",\"name\":\"Installing Portainer on Docker - DinoDevs\",\"isPartOf\":{\"@id\":\"https:\/\/dinodevs.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/dinodevs.com\/blog\/installing-portainer-on-docker\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/dinodevs.com\/blog\/installing-portainer-on-docker\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/dinodevs.com\/blog\/wp-content\/uploads\/2023\/10\/portainer-login.png\",\"datePublished\":\"2023-10-13T14:29:58+00:00\",\"dateModified\":\"2024-06-11T16:57:43+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/dinodevs.com\/blog\/installing-portainer-on-docker\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/dinodevs.com\/blog\/installing-portainer-on-docker\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/dinodevs.com\/blog\/installing-portainer-on-docker\/#primaryimage\",\"url\":\"https:\/\/dinodevs.com\/blog\/wp-content\/uploads\/2023\/10\/portainer-login.png\",\"contentUrl\":\"https:\/\/dinodevs.com\/blog\/wp-content\/uploads\/2023\/10\/portainer-login.png\",\"width\":1024,\"height\":346},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/dinodevs.com\/blog\/installing-portainer-on-docker\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/dinodevs.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Installing Portainer on Docker\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/dinodevs.com\/blog\/#website\",\"url\":\"https:\/\/dinodevs.com\/blog\/\",\"name\":\"DinoDevs\",\"description\":\"When in doubt, code it out.\",\"publisher\":{\"@id\":\"https:\/\/dinodevs.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/dinodevs.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/dinodevs.com\/blog\/#organization\",\"name\":\"DinoDevs\",\"url\":\"https:\/\/dinodevs.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/dinodevs.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/dinodevs.com\/blog\/wp-content\/uploads\/2025\/05\/dinodevs.cube_.png\",\"contentUrl\":\"https:\/\/dinodevs.com\/blog\/wp-content\/uploads\/2025\/05\/dinodevs.cube_.png\",\"width\":600,\"height\":600,\"caption\":\"DinoDevs\"},\"image\":{\"@id\":\"https:\/\/dinodevs.com\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/dinodevs.com\/blog\/#\/schema\/person\/fccac7bcc5374cede43de49a450dfaf3\",\"name\":\"Athanasios Grammatopoulos\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/dinodevs.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/0271fabc59edad96ed659fb1a3c4caf867a7324609e22d0b2cc25ad71d4c0d8c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/0271fabc59edad96ed659fb1a3c4caf867a7324609e22d0b2cc25ad71d4c0d8c?s=96&d=mm&r=g\",\"caption\":\"Athanasios Grammatopoulos\"},\"sameAs\":[\"https:\/\/github.com\/GramThanos\"],\"url\":\"https:\/\/dinodevs.com\/blog\/author\/gramthanos\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Installing Portainer on Docker - DinoDevs","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/dinodevs.com\/blog\/installing-portainer-on-docker\/","og_locale":"en_US","og_type":"article","og_title":"Installing Portainer on Docker - DinoDevs","og_description":"I found Portainer to be just what I needed to manage the containers of my small Docker servers. You can install it easily as a container running on the same Docker server that you want it to manage. Setting Portainer up To install it, you first need to create a volume so that it can [&hellip;]","og_url":"https:\/\/dinodevs.com\/blog\/installing-portainer-on-docker\/","og_site_name":"DinoDevs","article_published_time":"2023-10-13T14:29:58+00:00","article_modified_time":"2024-06-11T16:57:43+00:00","og_image":[{"width":1024,"height":346,"url":"https:\/\/dinodevs.com\/blog\/wp-content\/uploads\/2023\/10\/portainer-login.png","type":"image\/png"}],"author":"Athanasios Grammatopoulos","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Athanasios Grammatopoulos","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/dinodevs.com\/blog\/installing-portainer-on-docker\/#article","isPartOf":{"@id":"https:\/\/dinodevs.com\/blog\/installing-portainer-on-docker\/"},"author":{"name":"Athanasios Grammatopoulos","@id":"https:\/\/dinodevs.com\/blog\/#\/schema\/person\/fccac7bcc5374cede43de49a450dfaf3"},"headline":"Installing Portainer on Docker","datePublished":"2023-10-13T14:29:58+00:00","dateModified":"2024-06-11T16:57:43+00:00","mainEntityOfPage":{"@id":"https:\/\/dinodevs.com\/blog\/installing-portainer-on-docker\/"},"wordCount":191,"publisher":{"@id":"https:\/\/dinodevs.com\/blog\/#organization"},"image":{"@id":"https:\/\/dinodevs.com\/blog\/installing-portainer-on-docker\/#primaryimage"},"thumbnailUrl":"https:\/\/dinodevs.com\/blog\/wp-content\/uploads\/2023\/10\/portainer-login.png","keywords":["docker","linux","server"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/dinodevs.com\/blog\/installing-portainer-on-docker\/","url":"https:\/\/dinodevs.com\/blog\/installing-portainer-on-docker\/","name":"Installing Portainer on Docker - DinoDevs","isPartOf":{"@id":"https:\/\/dinodevs.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/dinodevs.com\/blog\/installing-portainer-on-docker\/#primaryimage"},"image":{"@id":"https:\/\/dinodevs.com\/blog\/installing-portainer-on-docker\/#primaryimage"},"thumbnailUrl":"https:\/\/dinodevs.com\/blog\/wp-content\/uploads\/2023\/10\/portainer-login.png","datePublished":"2023-10-13T14:29:58+00:00","dateModified":"2024-06-11T16:57:43+00:00","breadcrumb":{"@id":"https:\/\/dinodevs.com\/blog\/installing-portainer-on-docker\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/dinodevs.com\/blog\/installing-portainer-on-docker\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/dinodevs.com\/blog\/installing-portainer-on-docker\/#primaryimage","url":"https:\/\/dinodevs.com\/blog\/wp-content\/uploads\/2023\/10\/portainer-login.png","contentUrl":"https:\/\/dinodevs.com\/blog\/wp-content\/uploads\/2023\/10\/portainer-login.png","width":1024,"height":346},{"@type":"BreadcrumbList","@id":"https:\/\/dinodevs.com\/blog\/installing-portainer-on-docker\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/dinodevs.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Installing Portainer on Docker"}]},{"@type":"WebSite","@id":"https:\/\/dinodevs.com\/blog\/#website","url":"https:\/\/dinodevs.com\/blog\/","name":"DinoDevs","description":"When in doubt, code it out.","publisher":{"@id":"https:\/\/dinodevs.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/dinodevs.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/dinodevs.com\/blog\/#organization","name":"DinoDevs","url":"https:\/\/dinodevs.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/dinodevs.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/dinodevs.com\/blog\/wp-content\/uploads\/2025\/05\/dinodevs.cube_.png","contentUrl":"https:\/\/dinodevs.com\/blog\/wp-content\/uploads\/2025\/05\/dinodevs.cube_.png","width":600,"height":600,"caption":"DinoDevs"},"image":{"@id":"https:\/\/dinodevs.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/dinodevs.com\/blog\/#\/schema\/person\/fccac7bcc5374cede43de49a450dfaf3","name":"Athanasios Grammatopoulos","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/dinodevs.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/0271fabc59edad96ed659fb1a3c4caf867a7324609e22d0b2cc25ad71d4c0d8c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0271fabc59edad96ed659fb1a3c4caf867a7324609e22d0b2cc25ad71d4c0d8c?s=96&d=mm&r=g","caption":"Athanasios Grammatopoulos"},"sameAs":["https:\/\/github.com\/GramThanos"],"url":"https:\/\/dinodevs.com\/blog\/author\/gramthanos\/"}]}},"_links":{"self":[{"href":"https:\/\/dinodevs.com\/blog\/wp-json\/wp\/v2\/posts\/200","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dinodevs.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dinodevs.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dinodevs.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dinodevs.com\/blog\/wp-json\/wp\/v2\/comments?post=200"}],"version-history":[{"count":7,"href":"https:\/\/dinodevs.com\/blog\/wp-json\/wp\/v2\/posts\/200\/revisions"}],"predecessor-version":[{"id":248,"href":"https:\/\/dinodevs.com\/blog\/wp-json\/wp\/v2\/posts\/200\/revisions\/248"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dinodevs.com\/blog\/wp-json\/wp\/v2\/media\/204"}],"wp:attachment":[{"href":"https:\/\/dinodevs.com\/blog\/wp-json\/wp\/v2\/media?parent=200"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dinodevs.com\/blog\/wp-json\/wp\/v2\/categories?post=200"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dinodevs.com\/blog\/wp-json\/wp\/v2\/tags?post=200"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}