Containers

Check used ports on Linux


sudo lsof -i -P -n | grep LISTEN
sudo netstat -tulpn | grep LISTEN
sudo ss -tulpn | grep LISTEN
sudo lsof -i:22 ## see a specific port such as 22 ##
sudo nmap -sTU -O IP-address-Here

Docker

Docker

Portainer app templates


Docker

Move docker on another disk on OMV

  1. Stop the docker daemon (and all containers with it) systemctl stop docker
  2. rsync -aHv /var/lib/docker /srv/dev-disk-by-id-usb-WDC_WD10_EARS-00Y5B1_152D00539000-0-0-part2/omv/docker
    Copy all old docker contents to new location keeping permissions and possible hard links and be verbose about what it is doing
  3. Uninstall docker
  4. change the docker location in the OMV UI
  5. install docker with the path changed and saved.
  6. SAVE
  7. Restart the docker daemon in the OMV UI (will restart containers as well)
  8. Check if all your containers are running as expected
  9. remove /var/lib/docker


Docker

Portainer on OMV

(c) https://forum.openmediavault.org/index.php?thread/40489-how-to-prepare-omv-to-install-docker-applications/

Introduction and basic concepts

Docker is a technology that enables the creation and use of Linux containers. A container is a closed environment where one or more applications and their dependencies are installed, grouped and isolated from each other, running on the same operating system kernel.

Docker allows you to install, uninstall, modify, update applications as many times as you want without causing damage to the system.

Starting from a system with OMV installed and with a file system with shared folders, to use Docker we need::

Instructions for preparing and installing docker

1. Previous steps.

3. Create folders for Docker files

mkdir /SSD/docker
mkdir -m 770 /SSD/config
chgrp users /SSD/config

4. Define the default location of the docker PROGRAM files. Install Docker and Portainer.

5. Create the user "appuser".

Example of installing an application (Jellyfin):

6. Choose a stack

(Note: Verify on the official page that this stack has not changed before installing it)

---
version: "2.1"
services:
  jellyfin:
    image: lscr.io/linuxserver/jellyfin:latest
    container_name: jellyfin
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Europe/London
      - JELLYFIN_PublishedServerUrl=192.168.0.5 #optional
    volumes:
      - /path/to/library:/config
      - /path/to/tvseries:/data/tvshows
      - /path/to/movies:/data/movies
    ports:
      - 8096:8096
      - 8920:8920 #optional
      - 7359:7359/udp #optional
      - 1900:1900/udp #optional
    restart: unless-stopped

7. Customize the stack.

Docker

Backup containers

https://hub.docker.com/r/offen/docker-volume-backup

https://torsion.org/borgmatic/

https://www.modem7.com/books/docker-backup/page/backup-docker-using-borgmatic

https://github.com/borgbase/vorta

https://kopia.io/

 



Docker

Learn Docker

Getting Started with Docker

https://github.com/collabnix/dockerlabs

 

Kubernetes

Kubernetes

Kubernetes cluster

https://www.linuxtechi.com/install-kubernetes-on-ubuntu-22-04/