Troubleshooting
Common issues and how to resolve them. If something here doesn't match what you're seeing, please open an issue.
vibepg doctor fails
Symptoms: doctor exits non-zero, complains about a missing Docker CLI, or reports a connection error.
- Docker not installed: install Docker Desktop (macOS, Windows) or Docker Engine (Linux), then re-run.
- Docker not running: start Docker Desktop, or
sudo systemctl start dockeron Linux. - Permission denied on
/var/run/docker.sock(Linux): your user isn't in thedockergroup. Add it withsudo usermod -aG docker $USER, then log out and back in. - Docker on a non-default socket: set
DOCKER_HOSTin your shell so the Docker CLI (and therefore vibepg) can find it.
Every other vibepg command depends on a healthy doctor, so fix this first.
Keychain errors on vibepg new
vibepg can't write the generated password to your OS keychain.
- macOS: the login keychain is locked. Unlock it (Keychain Access app → File → Unlock "login").
- Linux: the Secret Service backend isn't running. On a desktop session, GNOME Keyring or KWallet provides this. On a headless server, install and configure
gnome-keyring(and rundbus-launch) or use a different backend. - Linux SSH session: Secret Service typically isn't accessible over plain SSH. Either run vibepg locally on the box, or forward your D-Bus session.
- Windows: rare; usually means the Credential Manager service is disabled. Check
services.msc.
vibepg ls shows missing
The registry has a record for the instance but the container is gone — usually because someone (or another tool) ran docker rm directly.
vibepg rm <name>Removes the registry entry and the keychain secret. The volume, if any, is preserved unless you also pass --with-volume.
Port already in use
Error: port 5433 is already in useEither pick a different port or find what's using it:
# macOS / Linux
lsof -nP -iTCP:5433 -sTCP:LISTEN
# Windows
netstat -ano | findstr :5433Then either kill the conflicting process or recreate the instance with a different port. (You can also let vibepg pick a free port automatically by omitting --port.)
vibepg psql exits immediately
psql needs a TTY. If you're invoking vibepg from a script, a remote shell without a TTY, or an editor's run-task panel, allocate one:
# from a script that does have a TTY:
vibepg psql demo
# from an environment without a TTY, use exec instead:
vibepg exec demo "select 1;"On Windows, run from Windows Terminal, PowerShell, or a proper terminal — not from inside the legacy cmd.exe host.
Container starts but Postgres never becomes ready
- Check the logs:
vibepg logs <name> - Wait longer on slow disks: cold starts on macOS can take 10–20 seconds the first time the volume is initialized.
- If you specified
--versionwith a non-existent tag, the image pull will fail; rundocker pull postgres:<tag>to confirm.
Filing bugs
When opening an issue, please include:
vibepg --versionoutputvibepg doctoroutput (redact any paths you'd rather not share)- The exact command you ran and the full error output
- Your OS and Docker version
Issues live at https://github.com/vibepg/vibepg-cli/issues.