Skip to content

aio-interface: offer system prune button#7677

Draft
szaimen wants to merge 2 commits intomainfrom
enh/7666/offer-system-prune-button
Draft

aio-interface: offer system prune button#7677
szaimen wants to merge 2 commits intomainfrom
enh/7666/offer-system-prune-button

Conversation

Signed-off-by: Simon L. <szaimen@e.mail.de>
@szaimen szaimen added this to the next milestone Feb 27, 2026
@szaimen szaimen added 2. developing Work in progress enhancement New feature or request labels Feb 27, 2026
Comment on lines 1002 to 1011
// Special-case images prune to include the dangling filter as requested
if ($endpoint === 'images/prune') {
$filters = json_encode(['dangling' => ['false']]);
$url = $this->BuildApiUrl($endpoint . '?filters=' . urlencode($filters));
} else {
$url = $this->BuildApiUrl($endpoint);
}

try {
$this->guzzleClient->post($url);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should show the current step in the aio interface.

Comment on lines +325 to +329
<form method="POST" action="api/docker/prune" class="xhr">
<input type="hidden" name="{{csrf.keys.name}}" value="{{csrf.name}}">
<input type="hidden" name="{{csrf.keys.value}}" value="{{csrf.value}}">
<input type="submit" value="Run docker system prune" onclick="return confirm('Run docker system prune? This will remove unused images, containers and volumes. Continue?')" />
</form>
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably move this somewhere else and use the loader to show the current process

Signed-off-by: Simon L. <szaimen@e.mail.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2. developing Work in progress enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

While containers are running, offer button to run docker system prune

1 participant