Docker

From IndieWeb
(Redirected from docker)


Docker provides a way to package an application into a container that includes all the dependencies it needs to run and is used by some IndieWeb sites. Its primary benefit is enabling much simpler deployment of complex software packages.

It can be used as an open platform to manage which processes should run on your server (for instance Apache, MySQL, etcetera). It lets you use Linux containers (LXC) to run each process in a sandboxed environment, and simple human-readable Dockerfiles to script the install instructions for these container.

Issues

  • Still quite young and a bit of a moving target.
  • Very hard to find documentation that's not too jargon as most people working with Docker right now are deep into devops. (Docker has fantastic potential to enable componentized software deployments for "normal people", too.)
  • No desktop GUIs available for managing docker containers.
    • There are a bunch of web services, but I do not want to rely on someone else’s (i.e. not my webhost) web service to manage my website, reader, services etc. --Barnaby Walters 09:32, 23 February 2015 (PST)
    • There is the Kitematic GUI for managing local docker containers. -- Pelle Wessman 20:07, 22 July 2015 (CET)
  • Unclear exactly how compartmentalized applications should be made — everything in a single container for ease? Or database in one, filesystem in another, application in another, all strung together?
    • I believe the idea to have each container just do a single thing has emerged as the best practice. So one for the database, one for the application etc. -- Pelle Wessman 20:07, 22 July 2015 (CET)

Definitions

LXC (LinuX Containers) is a virtualization method at the operating system–level. It allows you to isolate running code as if it was inside a virtual machine but without the requirement of having special purpose virtual machine software like VMWare.

IndieWeb Examples

danger.computer

Jacky Alciné

  • Jacky Alciné uses it via Dokku to run _everything_ since it make reproducibility very simple.

0x3b0b

  • 0x3b0b uses docker and Traefik to run microblog.pub as an additional container alongside a Matrix homeserver, since December 2022.

Add yourself!

Add yourself here… (see this for more details)

IndieWeb Containers

Places to Host Docker Containers

Tools

  • Docker Compose, previously called "Fig", can be used to easily bootstrap a local environment with database containers etc that should be linked to the application container. Reduces it all to a single "docker-compose up" command.

See Also