Skip to content

podman inspect does not return size of container terminal #28368

@mheon

Description

@mheon

Issue Description

In the output of podman inspect, there is a field for the container's TTY size (ConsoleSize), which Podman presently only returns [0,0] for. This should be fixed to return the actual terminal size for containers that attach a TTY.

Steps to reproduce the issue

Steps to reproduce the issue

  1. podman run -t -i --rm fedora bash
  2. podman inspect -l

Describe the results you received

ConsoleSize returns [0,0]

Describe the results you expected

A sensible value describing the actual size of the terminal

podman info output

N/A

Podman in a container

No

Privileged Or Rootless

None

Upstream Latest Release

Yes

Additional environment details

Additional environment details

Additional information

Additional information like issue happens only occasionally or issue happens with a particular architecture or on a particular setting

Metadata

Metadata

Assignees

Labels

ContribfestBugs for Contribfestkind/bugCategorizes issue or PR as related to a bug.volunteers-wantedIssues good for community/volunteer contributions

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions