Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

client: remove unused Docker images and containers on startup #5877

Merged
merged 6 commits into from
Nov 3, 2024

Commits on Nov 1, 2024

  1. client: remove unused Docker images and containers on startup

    The images and containers created by docker_wrapper have a particular form:
    boinc__<proj>__<wuname> and boinc__<proj>__<resultname>.
    
    docker_wrapper normally cleans up after itself.
    But if it crashes these objects could hang around forever,
    taking up disk space.
    
    So we clean them up on client startup, as follows:
    make lists of the names for active Docker tasks.
    Then go through the list of Docker images and containers.
    Remove any that
    - were created by Docker wrapper (i.e. have boinc__ names)
    - aren't in the active-task lists
    
    On Unix, do this on the host itself if it has Docker installed.
    On Win, do it for every WSL distro that has Docker installed.
    davidpanderson committed Nov 1, 2024
    Configuration menu
    Copy the full SHA
    b982fae View commit details
    Browse the repository at this point in the history
  2. Win build fixes

    davidpanderson committed Nov 1, 2024
    Configuration menu
    Copy the full SHA
    c7c8fea View commit details
    Browse the repository at this point in the history

Commits on Nov 2, 2024

  1. debug docker_wrapper on Linux

    Make 'verbose' an attribute of DOCKER_CONN.
    davidpanderson committed Nov 2, 2024
    Configuration menu
    Copy the full SHA
    733b1f7 View commit details
    Browse the repository at this point in the history
  2. linux build fix

    davidpanderson committed Nov 2, 2024
    Configuration menu
    Copy the full SHA
    af7087e View commit details
    Browse the repository at this point in the history
  3. build fixes

    davidpanderson committed Nov 2, 2024
    Configuration menu
    Copy the full SHA
    989f78d View commit details
    Browse the repository at this point in the history

Commits on Nov 3, 2024

  1. FCGI build fix

    Maybe we should divide util.cpp into
    - things used from the scheduler and file upload handlers
        (where we need boinc::stdio stuff)
    - everything else
    davidpanderson committed Nov 3, 2024
    Configuration menu
    Copy the full SHA
    3645a16 View commit details
    Browse the repository at this point in the history