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

Document empty IP address #3

Open
eriksjolund opened this issue Feb 10, 2024 · 0 comments
Open

Document empty IP address #3

eriksjolund opened this issue Feb 10, 2024 · 0 comments

Comments

@eriksjolund
Copy link
Owner

Document the somewhat surprising fact that IPAddress is empty when running podman inspect

Example

  1. Run a long-running container
    $ podman run --rm --name test -d docker.io/alpine sleep inf
    c8c69b32d026275ba83e233313d5bab979b21573e79129e0db7508eb6366c7a3
    
  2. Show IP address with podman inspect
    $ podman inspect test | grep IPAddress
                   "IPAddress": "",
    
  3. Show IP address with podman inspect but use a Go template
    $ podman inspect --format "IP: {{.NetworkSettings.IPAddress}}" test
    IP: 
    

Step 2 and step 3 are just different ways of showing the same information.

about the system:

$ podman --version
podman version 4.9.0
$ rpm-ostree status
State: idle
Deployments:
● ostree-remote-image:fedora:docker://quay.io/fedora/fedora-coreos:rawhide
                   Digest: sha256:cb54cb7d902a599c2b334e220b1a8a9e28d09d89b685758ff044f3d33376fae6
                  Version: 40.20240202.91.0 (2024-02-02T14:14:19Z)
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

1 participant