{"id":183,"date":"2020-09-26T13:06:21","date_gmt":"2020-09-26T13:06:21","guid":{"rendered":"https:\/\/dft.wiki\/?p=183"},"modified":"2026-06-09T15:02:59","modified_gmt":"2026-06-09T19:02:59","slug":"private-cloud","status":"publish","type":"post","link":"https:\/\/dft.wiki\/?p=183","title":{"rendered":"Private Cloud with NextCloud using Docker or Snap"},"content":{"rendered":"<p>How about having your own cloud and making all your files accessible from anywhere?<\/p>\n<p>Similar to Google Drive, iCloud, and OneDrive, but with large capacity, no payments, and full speed on your local network while sharing files directly with your TV, computers, and other devices. You can also access files from anywhere through the internet via any browser or mobile app. Here are two free cloud solutions.<\/p>\n<p>FreeNAS [<a href=\"https:\/\/www.freenas.org\/\">https:\/\/www.freenas.org\/<\/a>] &#8211; Based on FreeBSD, it offers excellent stability, professional features, and smart management. A good tip is to create a Virtual Machine for testing before building a dedicated server. Perfect for small and medium businesses and home enthusiasts.<\/p>\n<p>NextCloud [<a href=\"https:\/\/nextcloud.com\/\">https:\/\/nextcloud.com\/<\/a>] &#8211; This solution can be deployed on Linux via Docker or Snap (even on small hardware like a Raspberry Pi), or run inside a Virtual Machine on any operating system.<\/p>\n<p>If you want to run NextCloud directly on the host machine instead of a container, follow the next post [<a href=\"https:\/\/dft.wiki\/?p=1351\">Link<\/a>].<\/p>\n<p><strong>NextCloud in a Docker<\/strong><\/p>\n<pre>sudo apt update\r\nsudo apt install docker.io\r\nsudo docker pull nextcloud\r\nsudo docker run --name MyNextCloud -d -p 80:80 nextcloud<\/pre>\n<p>The commands above will install Docker, download the NextCloud image from Docker Hub, and create a container with your cloud.<\/p>\n<p>Open <a href=\"http:\/\/127.0.0.1\/\">http:\/\/127.0.0.1\/<\/a> in your local browser and complete the setup on first launch. Create as many users as you want and use as much space as your hard drives can support.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-135 size-medium\" src=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2020\/09\/Screenshot-from-2020-03-20-21-33-11-1024x584-1-300x171.png\" alt=\"\" width=\"300\" height=\"171\" srcset=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2020\/09\/Screenshot-from-2020-03-20-21-33-11-1024x584-1-300x171.png 300w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2020\/09\/Screenshot-from-2020-03-20-21-33-11-1024x584-1-768x438.png 768w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2020\/09\/Screenshot-from-2020-03-20-21-33-11-1024x584-1.png 1024w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-136 size-medium\" src=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2020\/09\/Screenshot-from-2020-03-20-21-35-17-1024x584-1-300x171.png\" alt=\"\" width=\"300\" height=\"171\" srcset=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2020\/09\/Screenshot-from-2020-03-20-21-35-17-1024x584-1-300x171.png 300w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2020\/09\/Screenshot-from-2020-03-20-21-35-17-1024x584-1-768x438.png 768w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2020\/09\/Screenshot-from-2020-03-20-21-35-17-1024x584-1.png 1024w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-140\" src=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2020\/09\/Screenshot-from-2020-03-20-21-36-54-1024x584-1-300x171.png\" alt=\"\" width=\"300\" height=\"171\" srcset=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2020\/09\/Screenshot-from-2020-03-20-21-36-54-1024x584-1-300x171.png 300w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2020\/09\/Screenshot-from-2020-03-20-21-36-54-1024x584-1-768x438.png 768w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2020\/09\/Screenshot-from-2020-03-20-21-36-54-1024x584-1.png 1024w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/> <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-139\" src=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2020\/09\/Screenshot-from-2020-03-20-21-36-43-1024x584-1-300x171.png\" alt=\"\" width=\"300\" height=\"171\" srcset=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2020\/09\/Screenshot-from-2020-03-20-21-36-43-1024x584-1-300x171.png 300w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2020\/09\/Screenshot-from-2020-03-20-21-36-43-1024x584-1-768x438.png 768w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2020\/09\/Screenshot-from-2020-03-20-21-36-43-1024x584-1.png 1024w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/> <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-138\" src=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2020\/09\/Screenshot-from-2020-03-20-21-36-10-1024x584-1-300x171.png\" alt=\"\" width=\"300\" height=\"171\" srcset=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2020\/09\/Screenshot-from-2020-03-20-21-36-10-1024x584-1-300x171.png 300w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2020\/09\/Screenshot-from-2020-03-20-21-36-10-1024x584-1-768x438.png 768w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2020\/09\/Screenshot-from-2020-03-20-21-36-10-1024x584-1.png 1024w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/> <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-137\" src=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2020\/09\/Screenshot-from-2020-03-20-21-35-45-1024x584-1-300x171.png\" alt=\"\" width=\"300\" height=\"171\" srcset=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2020\/09\/Screenshot-from-2020-03-20-21-35-45-1024x584-1-300x171.png 300w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2020\/09\/Screenshot-from-2020-03-20-21-35-45-1024x584-1-768x438.png 768w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2020\/09\/Screenshot-from-2020-03-20-21-35-45-1024x584-1.png 1024w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>How to start and stop the container:<\/p>\n<pre>sudo docker start MyNextCloud\r\nsudo docker stop MyNextCloud<\/pre>\n<p>How to remove the container and the image:<\/p>\n<pre>sudo docker rm MyNextCloud\r\nsudo docker rmi nextcloud<\/pre>\n<p><strong>NextCloud in a Snap<\/strong><\/p>\n<pre>sudo apt update\r\nsudo apt install snapd\r\nsudo snap install nextcloud<\/pre>\n<p>The NextCloud service starts automatically with your system, so no manual start or stop is needed.<\/p>\n<p>How to remove the Snap:<\/p>\n<pre>sudo snap remove nextcloud<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>How about having your own cloud and making all your files accessible from anywhere? Similar [&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-183","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\/183","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=183"}],"version-history":[{"count":14,"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/posts\/183\/revisions"}],"predecessor-version":[{"id":5852,"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/posts\/183\/revisions\/5852"}],"wp:attachment":[{"href":"https:\/\/dft.wiki\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=183"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dft.wiki\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=183"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dft.wiki\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=183"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}