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

hello-world will not even run #117

Closed
jwilleke opened this issue May 18, 2024 · 5 comments
Closed

hello-world will not even run #117

jwilleke opened this issue May 18, 2024 · 5 comments

Comments

@jwilleke
Copy link

When trying to get the simplest of things working on an "Docker Official Image" and it fails.

hello-world

The image will not start.

  • Docker desktop Version: 4.30.0 (149282)
  • Engine: 26.1.1
  • Compose: v2.27.0-desktop.2

Also tried as a pod in Kubernetes.

@LaurentGoderre
Copy link
Member

Can you provide the error you get?

@jwilleke
Copy link
Author

Well apparently it runs and terminates. I never see an error.

@LaurentGoderre
Copy link
Member

I'm pretty sure for this image it's normal. It runs which outputs and then the container stops when the process stops.

@jwilleke
Copy link
Author

Thanks
You maybe right but as a "Hello World" then it is pretty confusing an useless.

I have been looking for a very simple "Hello World" app, deployed by kustomize, that is known to work to use for troubleshooting issues in a cluster.

Have yet to find one.

@yosifkit
Copy link
Member

Yeah, this image is really just a "cli" that prints output and exits. If you want something that responds to network and stays up, then an empty/unconfigured nginx would work pretty well. But if you need something a little more complex there is a simple voting app: https://github.com/dockersamples/example-voting-app.

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

No branches or pull requests

3 participants