{"id":1509,"date":"2021-03-19T18:35:39","date_gmt":"2021-03-19T18:35:39","guid":{"rendered":"https:\/\/dft.wiki\/?p=1509"},"modified":"2023-12-22T10:39:53","modified_gmt":"2023-12-22T15:39:53","slug":"portainer-to-manage-dockers-containers-with-ssl-tls","status":"publish","type":"post","link":"https:\/\/dft.wiki\/?p=1509","title":{"rendered":"Managing Dockers Containers with Portainer"},"content":{"rendered":"<p>Portainer is a Web GUI to manage Docker Containers [<a href=\"https:\/\/www.portainer.io\/\">Link<\/a>].<\/p>\n<p>See also the post about Yacht [<a href=\"https:\/\/dft.wiki\/?p=1499\">Link<\/a>].<\/p>\n<p>See also the post about CasaOS [<a href=\"https:\/\/dft.wiki\/?p=3836\">Link<\/a>].<\/p>\n<p>It runs in a container and can be installed as follows:<\/p>\n<pre>sudo apt update\r\nsudo apt install docker.io\r\nsudo docker volume create portainer_data\r\nsudo docker run -d -p 8000:8000 -p 9000:9000 --name=portainer --restart=always -v \/var\/run\/docker.sock:\/var\/run\/docker.sock -v portainer_data:\/data portainer\/portainer-ce<\/pre>\n<p>The SSL\/TLS enabling is very simplified. Just make sure they are available on the informed directory with the correspondent names:<\/p>\n<pre>$ docker run -d -p 443:9000 -p 8000:8000 --name portainer --restart always -v \/var\/run\/docker.sock:\/var\/run\/docker.sock <strong>-v ~\/certs:\/certs<\/strong> -v portainer_data:\/data portainer\/portainer-ce --ssl --sslcert \/certs\/<strong>portainer.crt<\/strong> --sslkey \/certs\/<strong>portainer.key<\/strong><\/pre>\n<p>Feels like Portainer is not as easy and friendly to new users.<\/p>\n<p>Portainer comes with templates by default but does not allow adding other sources. Yacht allows adding multiple template sources.<\/p>\n<p>On Yacht one can easily deploy a WordPress with multiple instances plus a SQL database on another instance and makes it very easy to manage, no that simple with Portainer.<\/p>\n<p>Portainer is more sophisticated, stable, and mature. It is a better option for a production environment but I recommend Yacht for most users.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Portainer is a Web GUI to manage Docker Containers [Link]. See also the post about [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,6],"tags":[],"class_list":["post-1509","post","type-post","status-publish","format-standard","hentry","category-linux","category-raspberry-pi"],"_links":{"self":[{"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/posts\/1509","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dft.wiki\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1509"}],"version-history":[{"count":9,"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/posts\/1509\/revisions"}],"predecessor-version":[{"id":3841,"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/posts\/1509\/revisions\/3841"}],"wp:attachment":[{"href":"https:\/\/dft.wiki\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1509"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dft.wiki\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1509"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dft.wiki\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1509"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}