Docker & GHCR on VPS
Install Docker, authenticate with GitHub Container Registry, pull your image.
Install Docker#
curl -fsSL https://get.docker.com | shIf not running as root, add your user to the docker group:
sudo usermod -aG docker $USER
newgrp dockerVerify:
docker --versionAuthenticate with GHCR#
You need a GitHub Personal Access Token (classic) with read:packages scope.
Create one at: GitHub → Settings → Developer Settings → Personal Access Tokens → Tokens (classic)
docker login ghcr.io -u GITHUB_USERNAME
# paste your PAT when prompted for passwordPull the image#
docker pull GHCR_IMAGE