هذا الجزء لم يُترجم بعد. أنت ترى النص الإنجليزي.
$ مستخدم عادي# بصلاحية root (أو مع sudo)
Pull and inspect images
Pull by tag or by digest; inspect before you run.
Tag images
A tag is another name for the same image. Tag for the registry you push to, with a version.
Log in and push
Log in once per registry, then push.
echo "$GHCR_TOKEN" | docker login ghcr.io -u s0sta --password-stdin
docker push ghcr.io/s0sta/shop:1.4.0
az acr login -n acrshop2026
docker push acrshop2026.azurecr.io/shop:1.4.0
docker logout ghcr.ioانتبه
docker login stores the credential in ~/.docker/config.json (base64, not encrypted) unless a credential helper is set. On shared machines, log out after use.
Save and load images as files
For machines without registry access, save images into a tar archive.
Clean up disk space
Old images, stopped containers and build cache fill the disk fast on build servers.
docker system df
docker image prune -f
docker image prune -a --filter "until=168h" -f
docker builder prune -f
docker system prune -f
docker volume prune -fانتبه
docker volume prune deletes data of volumes no container uses right now. Check docker volume ls first.
Run your own registry
For labs or isolated networks, run a small registry yourself. In companies, use ACR, GHCR, Harbor or Nexus with access control and scanning.