Skip to content

feat: uc image rm#357

Open
miekg wants to merge 4 commits into
psviderski:mainfrom
miekg:miek/26/mei06wo/prune
Open

feat: uc image rm#357
miekg wants to merge 4 commits into
psviderski:mainfrom
miekg:miek/26/mei06wo/prune

Conversation

@miekg

@miekg miekg commented May 6, 2026

Copy link
Copy Markdown
Contributor

Allow for image removal via the uc cmd line. This just does 'rm' not 'prune', but adds a missing option to uncloud to at least have the possibility to remove images remotely. SSH is of course still an option.

All the plumbing and docker rpcs is done. It needs an e2e test still.

See #167

miekg added 3 commits May 6, 2026 12:28
Allow for image removal via the uc cmd line. This just does 'rm' not
'prune', but adds a missing option to uncloud to at least have the
possibility to remove images remotely. SSH is of course still an option.

All the plumbing and docker rpcs is done. It needs an e2e test still.

See psviderski#167

Signed-off-by: Miek Gieben <miek@miek.nl>
Signed-off-by: Miek Gieben <miek@miek.nl>
Signed-off-by: Miek Gieben <miek@miek.nl>
Comment thread cmd/uncloud/image/rm.go Outdated
Signed-off-by: Miek Gieben <miek@miek.nl>
@miekg

miekg commented May 6, 2026

Copy link
Copy Markdown
Contributor Author

this works:

% uc rm test-compose-predeploy
[+] Removing service test-compose-predeploy 2/2
 ✔ Container test-compose-predeploy/f36ca0aa6e85 on machine-1  Removed                            0.0s
 ✔ Container test-compose-predeploy/b71f8ed6c635 on machine-1  Removed                            10.1s

% uc image ls
IMAGE ID       NAME                                  PLATFORMS          CREATED         SIZE     IN USE   MACHINE
e3a499df044f   busybox:1.37.0-uclibc                 linux/arm64/v8   19 months ago   2.32MB   ○        machine-1
40b9a55adb90   ghcr.io/psviderski/corrosion:latest   linux/arm64      11 months ago   115MB    ●        machine-1


% uc image ls
IMAGE ID       NAME                                  PLATFORMS        CREATED         SIZE     IN USE   MACHINE
e3a499df044f   busybox:1.37.0-uclibc                 linux/arm64/v8   19 months ago   2.32MB   ○        machine-1
40b9a55adb90   ghcr.io/psviderski/corrosion:latest   linux/arm64      11 months ago   115MB    ●        machine-1

% uc image rm busybox
The following images will be removed:
 • 'busybox:1.37.0-uclibc' ('e3a499df044f') on machine 'machine-1'

Do you want to continue? [y/N] y

Image 'busybox:1.37.0-uclibc' ('e3a499df044f') removed from machine 'machine-1'.
% uc image ls
IMAGE ID       NAME                                  PLATFORMS     CREATED         SIZE    IN USE   MACHINE
40b9a55adb90   ghcr.io/psviderski/corrosion:latest   linux/arm64   11 months ago   115MB   ●        machine-1

@miekg miekg mentioned this pull request May 8, 2026
@jabr

jabr commented May 11, 2026

Copy link
Copy Markdown
Contributor

Not sure if useful, but I also have an older draft branch (just updated it with main) that includes most, if not all, of the "missing" uc image ... commands like rm, prune, inspect, pull, and tag.

https://github.com/psviderski/uncloud/pull/264/changes

@miekg

miekg commented May 11, 2026

Copy link
Copy Markdown
Contributor Author

https://github.com/psviderski/uncloud/pull/264/changes

missed that, maybe that is a too big of an PR? (at least that would be my feeling as a maintainer). I might be worth doing prune and implementing the extra flags that are discussed in #167

@jabr

jabr commented May 11, 2026

Copy link
Copy Markdown
Contributor

maybe that is a too big of an PR?

Oh, yeah. I just meant it might be useful as a reference or to “strip for parts” if there is other functionality we want.

Breaking it into a few MRs is a good idea. I think prune and maybe inspect are the only ones that have come up for me that would have been convenient.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants