Skip to content

Reading container IP addresses #143

@glenn-auld

Description

@glenn-auld

The "Running your microservices in containers" section of the tutorial includes the following step to get the IP address of the system container:

podman inspect -f "{{.NetworkSettings.IPAddress }}" system

When I ran this (Windows, WSL2), the response was blank.

I eventually discovered that this appears to be due the difference between running podman containers in rootfull vs rootless modes.
See https://www.redhat.com/en/blog/container-ip-address-podman

i.e. the above "inspect" command only works for rootfull podman containers.

Maybe I've made a mistake in my setup, but I would suggest an update to the tutorial to make it clear on this point.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions