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

Revert composectl usage for checking whether app is installed #354

Merged
merged 1 commit into from
Aug 26, 2024

Conversation

mike-sul
Copy link
Contributor

@mike-sul mike-sul commented Aug 26, 2024

This reverts commit 37c0249.

The given functionality does not work if images hosted in docker.io are specified in a docker compose project file in a full format. For example, "docker.io/library/nginx:stable-alpine" or "docker.io/homeassistant/home-assistant:stable".

The dockerd removes the "docker.io" or "docker.io/library" prefix when stores such images in its store and as result returns the image URIs in the shorten format in a response to "http://localhost/images/json?all=1" request. For example, "nginx@sha256:" or "homeassistant/home-assistant@sha256:".

Therefore, it is not possible to map images listed in the compose project to images reported by dockerd unless the dockerd's URI shortening rules are taken in the "isAppInstalled" logic.

This reverts commit 37c0249.

The given functionality does not work if images hosted in docker.io are
specified in a docker compose project file in a full format.
For example, "docker.io/library/nginx:stable-alpine" or
"docker.io/homeassistant/home-assistant:stable".

The dockerd removes the "docker.io" or "docker.io/library" prefix when
stores such images in its store and as result returns the image URIs in
the shorten format in a response to "http://localhost/images/json?all=1"
request. For example, "nginx@sha256:<hash>" or
"homeassistant/home-assistant:<hash>".

Therefore, it is not possible to map images listed in the compose
project to images reported by dockerd unless the dockerd's URI shortening
rules are taken in the "isAppInstalled" logic.
@mike-sul mike-sul requested a review from detsch August 26, 2024 07:14
@mike-sul mike-sul merged commit 6f631de into v94 Aug 26, 2024
5 checks passed
Copy link
Member

@detsch detsch left a comment

Choose a reason for hiding this comment

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

Revert looks good.

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