Docker & Containers articles

Docker & Containers 309 Installing Docker and Docker Compose on a VPS Docker goes on a VPS with root access over SSH, never on shared hosting: there is no way to run it there. We...
Docker & Containers 271 Your first container, and what to look at when it will not start A container is a program running in a space of its own, with everything it needs already packed in an image. It...
Docker & Containers 275 Docker Compose: an application with its database Docker Compose describes a whole application in a single file: the program, the database, the networks between them...
Docker & Containers 299 Nginx as a reverse proxy in front of a container A reverse proxy is nginx receiving requests on ports 80 and 443, under your domain, and handing them to the...
Docker & Containers 300 HTTPS for a container: a certificate and a domain For an application running in a container to show the padlock, you need a domain pointing at the VPS and a...
Docker & Containers 304 Updating a Docker application without losing data Updating an application in Docker is, as a rule, pulling the new image and recreating the container. The data...
Docker & Containers 270 Docker filling the disk: images, volumes and logs Docker fills a VPS disk in three ways: the images and layers left behind after updates, the volumes nobody uses, and...
Docker & Containers 292 Writing a Dockerfile for a Node.js or Python app The Dockerfile is the recipe that turns your application into an image: a package with the code, the libraries and...
Docker & Containers 252 Getting inside a running container: exec, cp and what not to edit there The container is running and you need to look inside: a file, a variable, run one of the application’s commands. The...
Docker & Containers 227 Docker containers that cannot reach each other or the host: networks explained An application in Docker “cannot see” the database, or two projects cannot talk to each other, or a container cannot...
Docker & Containers 259 Docker volumes or bind mounts: where your data lives and how to back it up What a container writes inside itself disappears when it is deleted. For data to survive, you connect it to...
Docker & Containers 219 Running Docker on a VPS safely: the precautions that matter Docker makes it easy to get an application running, which is why it also makes it easy to get a poorly protected one...
Docker & Containers 264 Nextcloud on a VPS: your own file storage, with Docker Compose The short answer: Nextcloud is an open-source program that gives you your own “Drive”: files, calendar and contacts,...