paulgorman.org/technical

Install and Configure Nextcloud in Docker

(June 2018)

Install Docker

Docker provides good installation instructions.

On Debian, this boils down to:

  1. De-install old Docker versions: apt-get remove docker docker-engine docker.io
  2. Add Docker repositories to the Apt sources list:
    1. apt-get install apt-transport-https ca-certificates curl gnupg2 software-properties-common
    2. curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
    3. add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable"
  3. Install:
    1. apt-get update
    2. apt-get install docker-ce
  4. Test with docker run hello-world

Install Nextcloud

$ docker run -d -p 8080:80 nextcloud