No description
  • Dockerfile 32.2%
  • C 23.2%
  • Python 15.9%
  • Shell 15.4%
  • Makefile 13.3%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Tom Sweeney 76b262056e
Merge pull request #14 from afbjorklund/strip
Strip the binary to make it smaller
2024-03-21 15:00:18 -04:00
.github/workflows Merge pull request #9 from benoitf/weekly 2024-02-06 15:49:51 -05:00
python add link to Podman Desktop 2024-02-02 22:47:43 +01:00
shell add link to Podman Desktop 2024-02-02 22:47:43 +01:00
.containerignore Add a make file for building and running 2024-01-29 11:41:18 +01:00
.gitignore Add a make file for building and running 2024-01-29 11:41:18 +01:00
CODE-OF-CONDUCT.md Create CODE-OF-CONDUCT.md 2023-08-14 16:53:53 -04:00
Containerfile Strip the binary to make it smaller 2024-03-19 08:11:00 +01:00
LICENSE Initial commit 2023-08-14 16:44:03 -04:00
Makefile Add a make file for building and running 2024-01-29 11:41:18 +01:00
podman_hello_world.c add link to Podman Desktop 2024-02-02 22:47:43 +01:00
README.md add link to Podman Desktop 2024-02-02 22:47:43 +01:00
SECURITY.md Create SECURITY.md 2023-08-14 16:52:52 -04:00

PODMAN logo

Podman Hello World image Repository

Overview

This directory contains the Containerfile and source code necessary to create the "hello" podman image housed on quay.io under the Podman account in a public repository. The image is public and can be pulled without credentials.

Using this image is helpful to:

  • Prove that basic Podman operations are working on the host.
  • Shows that the image was pulled from the quay.io container registry.
  • Container creation was successfully accomplished. (podman ps -a)
  • The created container was able to stream output to your terminal.

Directory Contents

The contents of this directory contain:

  • ./Containerfile
  • ./podman_hello_world.c

Sample Usage

To simply run the image:

podman run quay.io/podman/hello

!... Hello Podman World ...!

         .--"--.
       / -     - \
      / (O)   (O) \
   ~~~| -=(,Y,)=- |
    .---. /`  \   |~~
 ~/  o  o \~~~~.----. ~~
  | =(X)= |~  / (O (O) \
   ~~~~~~~  ~| =(Y_)=-  |
  ~~~~    ~~~|   U      |~~

Project:   https://github.com/containers/podman
Website:   https://podman.io
Desktop:   https://podman-desktop.io
Documents: https://docs.podman.io
YouTube:   https://youtube.com/@Podman
X/Twitter: @Podman_io
Mastodon:  @Podman_io@fosstodon.org

To build the image yourself, copy the files from this directory into a local directory and issue these commands:

podman build -t myhello .
podman run myhello

Alternatives

Alternative hello images are in the "shell" and "python" directories.

They don't need a builder image, at the expense of a larger runtime.

THANKS!

Many Thanks to Anders Björklund for a great discussion during the first revision of this container image that resulted in moving from using bash to using C, and the ensuing changes to the Containerfile.

Also many thanks to Máirín Duffy for the awesome ASCII art!