Linux Format

Nextcloud and Docker containers made easy

We’re going to demystify and make Docker easy to use, explaining how to run it and expose services to the internet. For our case study we will use Nextcloud and a fresh installation of Ubuntu Server 18.04. The goal here is not to demonstrate a ‘better’ way of running Nextcloud, but rather how to use the Docker platform.

Docker is probably the best-known container system for Linux, although it is far from the only one. Containers allow developers to build all the necessary libraries, services and configuration files into a predefined package that can be recreated on-demand. They solve an age-old problem where applications work fine in development but not when they’re moved into production due to various dependencies, such as OS version, libraries, etc. This may sound similar to virtualisation (VirtualBox, VMware, etc.), but containers do not emulate hardware and even use the host server’s OS kernel – see the boxout (opposite page) for more.

Get docked

We’re going to use a virtual machine (any flavour will do, will work fine) on which to install Ubuntu Server 18.04. Feel free to add Docker onto an existing Linux installation too, but you may need to change some of the settings we apply later. During the installation of Ubuntu Server accept all the default settings, and the only

You’re reading a preview, subscribe to read more.

More from Linux Format

Linux Format12 min read
Let’s Code Some Demos Like It’s 1990!
Ferenc Deák never throws anything away, which is why he still has all his demoscene files. Sadly, it also means his fridge is a no-go zone. It all started when this author’s beloved retro PC, used to host nostalgic gaming sessions, I suddenly suffer
Linux Format1 min read
Nvk Is Go!
"NVK, the open source Vulkan driver for Nvidia hardware in Mesa, is ready for prime time. The merge request has landed, getting rid of the nonconformant implementation warnings and signalling to distros that it’s now time to start shipping NVK to use
Linux Format3 min read
Kernel Watch
Linus Torvalds announced the fourth RC (Release Candidate) for what will become Linux 6.9 in another few weeks. In his announcement, he noted that there was “Nothing particularly unusual going on this week – some new hardware mitigations may stand o

Related