Skip to content

socketd: preserve image-backed rootfs references in container summaries#142

Merged
ravindu644 merged 1 commit into
ravindu644:devfrom
yoshi3jp:web
May 20, 2026
Merged

socketd: preserve image-backed rootfs references in container summaries#142
ravindu644 merged 1 commit into
ravindu644:devfrom
yoshi3jp:web

Conversation

@yoshi3jp
Copy link
Copy Markdown
Contributor

Container inventory records were exporting directly as the Docker-compatible Image field source.

For directory-backed containers this works as expected, but Droidspaces loads regular-file and block-device rootfs_path entries into cfg->rootfs_img_path and clears cfg->rootfs_path. As a result, Portainer showed an empty Image column for image-backed containers, including sparse-image containers created by the Android app.

Prefer cfg->rootfs_img_path when present, falling back to cfg->rootfs_path for directory-backed containers. This keeps /containers/json aligned with the pseudo-image inventory and restores the visible image/rootfs reference in Portainer.

<img width="2545" height="1395" alt="Debug API via Portainer" src="https://github.com/user-attachments/assets/0468b05d-84d7-45b8-9bf6-f525903bb99d" />

A bug in api_server.cpp causing incomplete information being sent has also been addressed.

Container inventory records were exporting cfg->rootfs_path directly as the
Docker-compatible Image field source.

For directory-backed containers this works as expected, but Droidspaces loads
regular-file and block-device rootfs_path entries into cfg->rootfs_img_path and
clears cfg->rootfs_path. As a result, Portainer showed an empty Image column for
image-backed containers, including sparse-image containers created by the
Android app.

Prefer cfg->rootfs_img_path when present, falling back to cfg->rootfs_path for
directory-backed containers. This keeps /containers/json aligned with the
pseudo-image inventory and restores the visible image/rootfs reference in
Portainer.

A bug in api_server.cpp causing incomplete information being sent has also
been addressed.
@ravindu644 ravindu644 merged commit b908c72 into ravindu644:dev May 20, 2026
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