question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Docker Hub images are outdated, undocumented, duplicated, or don't exist.

See original GitHub issue

Image Problems

  1. Old Images: Code has changed in this repo and images are older than the code, causing old PR fixes to have no effect if you’re using the official images. One example:

    dockersamples/examplevotingapp_worker:latest is two years old but I fixed a 100% CPU issue nearly two years ago. Running current image will still spike CPU.

  2. Missing Images: Images for alternate builds don’t always exist. One example:

    This repo has a java worker as an alternative to the default dotnet worker, but Hub has no image for that. I recommend building it as tag java.

  3. Duplicate Image Repos: Images are duplicated in different Hub repos. One example:

    dockersamples/examplevotingapp_worker and dockersamples/worker are the same app but different build dates. The former is what’s used in all yaml and in README and what we’ve used for many years. The latter has a new build, and I’m guessing was created by the new Jenkinsfile added a year ago to help automate image builds, which is great, but that file is pushing to the wrong Hub repos and is not complete with the various tags and alt builds. Doing some quick searching it looks like no one is using the new image repos, so it would be OK to remove them and stick with the origionals.

  4. No Image Tag Docs: To help people get the most out of these images and demo, it would be quite helpful to have a table in the README.md listing all the images, their tags, and the reason for those tags. One example:

    What is the difference between :latest, :before, and :after? What tags are for what OS/arch?

Suggested Solutions

If the Jenkinsfile is indeed the future, I think a single PR could fix all these issues by fixing the current image repo/tags and adding all the alt builds to it, along with a README update on tag options for demos.

  • Fix current repo names for the 3 demo apps in Jenkinsfile
  • Add alt builds of the 3 demo apps to Jenkinsfile
  • Ensure all tags are covered by the pushes in Jenkinsfile
  • Delete misnamed Hub repos
  • Update README.md with a table of tags and uses

I’m looking for a thumbs up from maintainers that this would be the prefered resolution, and I’ll get started on a PR. It looks like the Jenkinsfile will test the new builds in the PR but won’t test the push commands until it’s merged to master 😬

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:4
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
BretFishercommented, Jun 9, 2020

I’m all about that. How can we help? PR a GA using the Docker Hub Action?

0reactions
mikesir87commented, Dec 17, 2022

I’m thinking this can be closed now that #263 and #271 have been merged. Thoughts @BretFisher?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I check if my local docker image is outdated ...
I'm running a react app in a docker container, on a Coreos server. Let's say it's been pulled from dockerhub from https://hub.docker.com/r/ ...
Read more >
OCI images pushed to dockerhub don't show up and aren't ...
When I build and push OCI images using the buildah CLI to dockerhub, they get pushed fine (and can be pulled with buildah...
Read more >
lloesche/valheim-server - Docker Image
There are a few undocumented environment variables that could break things if configured wrong. They can be found in defaults . Log filters....
Read more >
What is a Docker Image? Introduction and use cases
It is a record of a Docker container at a specific point in time. Docker images are also immutable. While they can't be...
Read more >
.NET Core 2.1 container images will be deleted from ...
NET Core 2.1 Docker container images will no longer be available on Docker Hub, but exclusively on Microsoft Container Registry (MCR).
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found