Skip to main content
Remove the Lager box software, Docker containers, and supporting files from a box.

Syntax

Options

Either --box or --ip is required.

What Gets Removed

Default Removal

With --all

In addition to the above:
Uninstall removes those three sudoers files by name. Lager never touches any other file under /etc/sudoers.d/, so grants you or your management platform added in a separate file there are left alone — both by uninstall and by the installs and updates that regenerate Lager’s own files.

Examples

Uninstall Flow

  1. Resolve target - Looks up box IP from --box name or uses --ip directly
  2. Verify SSH - Offers ~/.ssh/lager_box, then your own default identities, and falls back to password if neither authenticates
  3. Show summary - Lists what will be removed based on flags
  4. Confirm - Requires explicit confirmation (unless --yes)
  5. Remove step by step:
    • Stop and remove Docker containers
    • Clean Docker images and build cache
    • Remove ~/box directory
    • Remove /etc/lager directory
    • Remove additional components (if --all)
  6. Report - Confirms completion and suggests --all if not used

Notes

  • Each removal step continues even if a previous step fails, so partial uninstalls are possible
  • Use --keep-config if you plan to reinstall and want to preserve your net configuration
  • Use --keep-docker-images for a faster reinstall since images won’t need to be rebuilt
  • After uninstalling, use lager install to redeploy