Cloud & DevOps

Container security basics

Në shqip: Siguria e kontejnerëve

ShpjegimiSQ

Rregulla bazë: mos e ekzekuto aplikacionin si root brenda kontejnerit, përdor imazhe bazë të vogla, skanoji për dobësi (Trivy, Docker Scout), mos fut sekrete në imazh dhe përditësoji rregullisht.

EnglishEN

Basic rules: don't run the app as root inside the container, use small base images, scan them for vulnerabilities (Trivy, Docker Scout), never bake secrets into the image, and update them regularly.

Si ta mendosh

Si të kyçësh dhomat brenda shtëpisë, jo vetëm derën e jashtme.

Lexoje në anglisht

Like locking the rooms inside the house, not just the front door.

Shembull kodidockerfile

FROM node:22-alpine
USER node
COPY --chown=node . /app

Terma të lidhur