docker, nextcloud, nextcloudpi

NextCloudPi dockers for x86 and ARM

I would like to introduce a new set of NextCloudPi dockers.

Finally, it seems that the upstream docker containers both for x86 and ARM are caching up in terms of reduced size. That is great news because it relieves the burden of creating and maintaining the minidebian and miniraspbian base images.

This means that we can finally rebuild the NextCloudPi container easily on top of Debian Stretch. The result of this is a set of containers for different architectures that can be generated from the NextCloudPi codebase.

We now have

  • Nextcloud docker container for ARM: ownyourbits/nextcloud-armhf
  • Nextcloud docker container for x86: ownyourbits/nextcloud-x86
  • NextCloudPi docker container for ARM: ownyourbits/nextcloudpi-armhf
  • NextCloudPi docker container for x86: ownyourbits/nextcloudpi-x86

You can find them in dockerhub

We will also have arm64 containers, as soon as I set up my new odroid HC1 to create the images.

Nextcloud containers

These contain only Nextcloud, Postfix and so on but no other software or management interface. You still have to do your certificates and networking yourself.

This used to be known as the nextcloudpi container before.

NextCloudPi containers

The difference between nextcloud and nextcloudpi is that the latter contains also ncp-web, letsencrypt, DDNS, package autogrades and many other NextCloudPi features.

The first goal of creating this container was to facilitate an easy x86 development environment for NextCloudPi. We have this today.

The second goal, looking into the future, is to provide a docker image that benefits from the NextCloudPi web panel and package of related services, such as Let’s Encrypt, DDNS, unattended upgrades or backups. Nextcloud needs a bunch of networking, system configuration and management, and our goal is to simplify this.

At this moment, the extra NextCloudPi layer contains a subset of the options available in the SD image. Some options, such as wifi management don’t make sense at all inside a container, and others still need some work to be adapted.

As usual, help, issue reports and sugestions are welcome.

Installation

See this other post in order to setup docker on your Raspberry Pi if you haven’t done it yet.

Docker is the only requisite, but it is also nice to install docker compose for easier management.

For instance, in Arch

Or in Debian

Usage

The usage has not changed. If we are not in localhost, we need to provide the IP address or domain in order to be included in the trusted domain list.

The first time it will take some seconds to do the initial configuration, wait until you see ‘Init done’ in

Then, you can log into Nextcloud

, or the web panel

With docker-compose (optional)

First, clone the repo to get the compose files

Then, run one of them with compose up. Examples:

Notes

For nc-forward-ports to work, you need to run with –net=”host”, or setting up the docker0 bridge address to that of your local network, or use the macvlan driver. All of those are advanced or reduce isolation, so I would recommend to do the port forwarding manually at this point.

Author: nachoparker

Humbly sharing things that I find useful
[ github dockerhub ]

3 Comments on “NextCloudPi dockers for x86 and ARM

  1. Hi

    I’m not Completely awere what is a docker container. What is the advantage in relation to the traditional nextcloudpi? This means that I can install the cloud having no Noobs for example? Don’t understand. This docker concept is strange to me

Leave a Reply

Your email address will not be published. Required fields are marked *