8000 Fix docker image digest in startup runtime information for new runtime by dominikschubert · Pull Request #11100 · localstack/localstack · GitHub
[go: up one dir, main page]

Skip to content

Fix docker image digest in startup runtime information for new runtime #11100

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

Merged
merged 1 commit into from
Jun 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions localstack-core/localstack/runtime/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@ def print_runtime_information(in_docker: bool = False):
inspect_result = DOCKER_CLIENT.inspect_container(container_name)
container_id = inspect_result["Id"]
print("LocalStack Docker container id: %s" % container_id[:12])
image_sha = inspect_result["Image"]
print("LocalStack Docker image sha: %s" % image_sha)
image_details = DOCKER_CLIENT.inspect_image(inspect_result["Image"])
digests = image_details.get("RepoDigests") or ["Unavailable"]
print("LocalStack Docker image sha: %s" % digests[0])
except ContainerException:
print(
"LocalStack Docker container info: Failed to inspect the LocalStack docker container. "
Expand Down
Loading
0