Docker Swarm

Initialize the swarm docker swarm init –listen-addr 195.122.17.92:3000 –advertise-addr 10.10.0.6 We need the –advertise-addr because there are two IP addresses assigned to the same interface. Create a service docker service create –name my-service –publish 3000:3000 my-image:1.0.0 Set the service to be hosted on two nodes docker service update –replicas 2 my-service

Ubuntu System Services

This post about systemd has been published from a draft, so it’s not been proofed for publication. I find it useful, so I would like it readily available on-line. If you find anything wrong with it, please Ubuntu, like many GNU/Linux distributions, uses systemd. systemd is a system used by the OS tor manage process, […]

Time Clock and Windows Dual Boot

Part of the standard way to handle time on computers is to set the hardware clock (a.k.a. the BIOS clock) to UTC. Then users can select a timezone for displaying as their system time. Contrary to this conventional way of doing things, the Windows operating system sets the hardware clock to the configured local time. […]

PostgreSQL Quickstart

I’ve used mostly MySQL in the past, but a recent project called for working with PostgreSQL. The most immediate difference was that databases and schemas were semantically different. I took a liking to the DBMS – database management system, and plan to be using it in future projects. So, here I will notate some commands […]