2026年8月5日星期三

Use Powershell command to backup/restore all docker images

Backup all docker images: 


docker images -q | ForEach-Object { &docker save -o "$_.tar" $_ }


Restore all images:


ls -name *.tar | ForEach-Object { &docker load -i $_ }


Install Timescale and Postgresql for Ubuntu 26.04

 1. sudo apt update


2. sudo apt install -y postgresql-18 postgresql-client-18 postgresql-18-timescaledb


3. sudo nano /etc/postgresql/18/main/postgresql.conf

add a new line: 

shared_preload_libraries = 'timescaledb'


4. restart postgresql: sudo systemctl restart postgresql