Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
YouTube Security VideosGolemDE: Leben als IT-Freiberufler – zwei Perspektiven(24.09.2026 um 07:03 Uhr)
Sichere ProgrammierungOpenChamber 2.0: Skills ändern, Agent läuft weiter(24.09.2026 um 09:04 Uhr)
Sichere ProgrammierungBuilding Enterprise dApps with Smart Contracts and REST APIs(21.09.2026 um 11:34 Uhr)
Sichere ProgrammierungJavaScript Array Methods: 7 Essential Methods Every Developer Needs(24.09.2026 um 08:51 Uhr)
Sichere ProgrammierungCross-Chain Bridge Risk Assessment: Gauntlet(24.09.2026 um 08:53 Uhr)
Sichere ProgrammierungWe spent thirteen weeks about to buy a bigger database(24.09.2026 um 08:54 Uhr)
Sichere ProgrammierungHow to Choose a CDN for Asia in 2026: 7 Providers Compared(24.09.2026 um 08:54 Uhr)
Sichere ProgrammierungMy deploy said Success. It went to a URL nobody visits.(24.09.2026 um 09:00 Uhr)
YouTube Security VideosGolemDE: Leben als IT-Freiberufler – zwei Perspektiven(24.09.2026 um 07:03 Uhr)
Sichere ProgrammierungOpenChamber 2.0: Skills ändern, Agent läuft weiter(24.09.2026 um 09:04 Uhr)
Sichere ProgrammierungBuilding Enterprise dApps with Smart Contracts and REST APIs(21.09.2026 um 11:34 Uhr)
Sichere ProgrammierungJavaScript Array Methods: 7 Essential Methods Every Developer Needs(24.09.2026 um 08:51 Uhr)
Sichere ProgrammierungCross-Chain Bridge Risk Assessment: Gauntlet(24.09.2026 um 08:53 Uhr)
Sichere ProgrammierungWe spent thirteen weeks about to buy a bigger database(24.09.2026 um 08:54 Uhr)
Sichere ProgrammierungHow to Choose a CDN for Asia in 2026: 7 Providers Compared(24.09.2026 um 08:54 Uhr)
Sichere ProgrammierungMy deploy said Success. It went to a URL nobody visits.(24.09.2026 um 09:00 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

Stop Tagging Docker Images Manually | Automate Docker Tagging full guide

This Article provides a streamlined approach to automate Docker image tagging using versioning strategies. It supports two main versioning approaches: Semantic Versioning Timestamp-based Versioning Usage…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!

This Article provides a streamlined approach to automate Docker image tagging using versioning strategies.



It supports two main versioning approaches:




  • Semantic Versioning


  • Timestamp-based Versioning




Semantic and Timestamp-based Versioning










Usage in Docker



After configuring Semantic/DateTimeStamp versioning, you can use it in docker like the following




docker build -t "imagename:$(pyv)" . #build docker image with semantic versioning
docker push "username/imagename:$(pyv)" #push docker image created with semantic versioning
docker build -t "imagename:$(dtsv)" . #build docker image with TimeStamp based versioning









Docker Image Reference Structure



Docker Image Reference Structure



🔹 REGISTRY_HOST:PORT (Optional): Specifies the hostname (and optional port) of the Docker registry.

🔹 NAMESPACE (Optional): Represents the user or organization account within the registry.

🔹 REPOSITORY (Required): The actual name of the image.

🔹 TAG (Optional but Important): Identifies a specific version or variant of the image.

myapp:1.0.0 (semantic version)

myapp:2025_10_14_1200 (timestamp-based tag)

myapp:latest (default if none specified)





Semantic Versioning



Semantic versioning is a widely adopted version scheme that encodes a version by a three-part version number (Major. Minor. Patch), an optional pre-release tag, and an optional build meta tag. In this scheme, risk and functionality are the measures of significance.



Semantic Versioning



The core script pyv.py manages semantic versioning stored in a docker_version.json file. It allows incrementing major, minor, and patch versions, and displays the current version.




import json
import sys
import os

default_version={"major":1,"minor":0,"patch":0}

VERSION_FILE="docker_version.json"

def get_version():
if not os.path.exists(VERSION_FILE):
return default_version
with open(VERSION_FILE,"r") as f:
return json.load(f)
def save_version(version):
with open(VERSION_FILE,"w") as f:
json.dump(version,f,indent=2)

def format_version(version):
major=version["major"]
minor=version["minor"]
patch=version["patch"]
if patch==0:
if minor==0:
return f"{major}"
else:
return f"{major}.{minor}"
else:
return f"{major}.{minor}.{patch}"

def show_version():
v=get_version()
return format_version(v)

def update_version(version):
save_version(version)
return format_version(version)

def increment_major():
v=get_version()
v["major"]+=1
v["minor"]=0
v["patch"]=0
return update_version(v)

def increment_minor():
v=get_version()
v["minor"]+=1
v["patch"]=0
return update_version(v)

def increment_patch():
v=get_version()
v["patch"]+=1
return update_version(v)

if __name__ == '__main__':

if len(sys.argv)==1:
print(show_version())
sys.exit(0)
if len(sys.argv)>2:
print("Usage: pyv <major|minor|patch|show>")
sys.exit(1)

command=sys.argv[1]

if command=="major":
print(increment_major())
elif command=="minor":
print(increment_minor())
elif command=="patch":
print(increment_patch())
elif command=="show":
print(show_version())
else:
print("Invalid command. Use major|minor|patch|show as argument.")
sys.exit(1)






How it works




  • If the version file does not exist, it initializes to version 1.0.0.
    Supports commands:
    show: Displays current version,
    major: Increments major version,
    minor: Increments minor version,
    patch: Increments patch version



Usage




python pyv.py show
python pyv.py major
python pyv.py minor
python pyv.py patch









Global Command Setup



Linux Terminal



Linux





  • Create a pyv script (without.py extension)




#!/usr/bin/env python3
# Add the Python script code here








  • Make it executable and copy it to /usr/local/bin/




chmod +x pyv
sudo cp pyv /usr/local/bin/






Windows PowerShell



Windows PowerShell





  • Create a batch file (pyv.bat)




@echo off
python "%~dp0pyv.py" %*








  • Set up PowerShell Profile




Test-Path $PROFILE
New-Item -ItemType File -Path $PROFILE -Force
notepad $PROFILE








  • Add alias to profile




Set-Alias pyv "C:\path\to\pyv.bat" #copy the absolute path of your pyv.bat file








  • Configure execution policy (if you are having restrected execution policy)




Get-ExecutionPolicy
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser









Date Timestamps



This format automatically tags using timestamps in the pattern Year_Month_Day__Hour_Minute_Second to ensure unique and chronologically ordered names.



Date Timestamps Versioning



Linux




echo $SHELL #To know your shell






Set Date-Timestamps alias:




alias dtsv="date +'%Y_%m_%d__%H_%M_%S'"






Add Date-Timestamps alias to Shell configuration:




nano ~/.bashrc # or nano ~/.zshrc






After editing, source the profile:




source ~/.bashrc # or source ~/.zshrc






Windows PowerShell



Windows PowerShell



Add the following function to your PowerShell profile to generate timestamp strings:




notepad $PROFILE






Add this function:




function dtsv { Get-Date -Format "yyyy_MM_dd__HH_mm_ss" }






Usage:




dtsv







This setup enables efficient Docker image tagging through semantic or timestamp-based versioning, with cross-platform support and easy integration into your build process.


CTI Threat Relationship Graph4 Knoten / 3 Relationen
CVE / Incident Software MITRE ATT&CK CWE Weakness IoC
SOC Incident Playbook: Remote Code Execution (RCE) Defense
title: Detect Exploitation - Stop Tagging Docker Images Manually | Automate Docker Tagging full guide
id: 2ea2a144-3c55-4c05-b1fb-884217983f42
status: experimental
description: Automatisch generierte SIEM-Erkennungsregel basierend auf CTI Intelligence
references:
  - https://tsecurity.de/
author: iShareStuff CTI Automated Detection Engine
date: 2026-09-24
logsource:
  category: network_connection
  product: any
detection:
  selection:
      CommandLine|contains:
        - 'exploit'
  condition: selection
falsepositives:
  - Legitime administrative Zugriffe oder Penetrationstests
level: high
tags:
  - attack.initial_access
  - attack.t1059
rule CTI_Threat_Indicator {
    meta:
        author = "iShareStuff CTI Automated Detection Engine"
        date = "2026-09-24"
        description = "YARA Signature for "
    strings:
        $str = "Stop Tagging Docker Images Man" ascii wide
    condition:
        any of them
}
tsecurity.de Cognitive Threat RAG
Fokus-Vektor:

Kognitive Analyse für identifizierte Bedrohung: Erhöhte Bedrohungslage im Bereich Stop Tagging Docker Images Manually | Au.... Basierend auf 368k Vektor-Korrelationen werden sofortige Isolationsmaßnahmen für betroffene Endpunkte empfohlen.

🛡️ Angriffsfläche & Exposure

Netzwerk/Remote-Zugriff ohne Vorauthentifizierung möglich.

Empfohlene Sofortmaßnahmen
  • 1. Perimeter-Inspektion: Relevante Portfreigaben und exponierte Endpunkte unverzüglich scannen.
  • 2. Patch-Applikation: Hersteller-Hotfix einspielen oder betroffene Daemons in isolierte DMZ-Segmente überführen.
  • 3. Telemetrie & EDR-Alerts: Prozessaufrufe und Child-Processes auf anomale Shell-Spawns überwachen.
🔗 Semantisch verwandte Zero-Days MariaDB 11.7 VEC
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Stop Tagging Docker Images Manually | Automate Docker Tagging full guide

Thematisch verwandte Begriffe: Stop, Tagging, Docker, Images · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-96772 | A security flaw has been discovered in Intelliants Subrion CMS up to 4.2…
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen

tsecurity.de Live Threat Radar

🔴 LIVE RADAR
MONITORING
AKTIV
CVE-DATENBANK
LIVE
🔍
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel Rechts: nächster Artikel unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel TTP ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

Zurück: vorheriger Vor: nächster
↗ Original-Quelle
Social Reaktionen Deine Reaktion zählt
Einstufung & Relevanz-Poll 0 Stimmen
In sozialen Netzwerken teilen 1-Klick