-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Docker compatibility: Container inspect endpoint returns null for NetworkSettings/Ports #6803
Labels
kind/bug
Categorizes issue or PR as related to a bug.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
Comments
openshift-ci-robot
added
the
kind/bug
Categorizes issue or PR as related to a bug.
label
Jun 27, 2020
And here's an example json that exposes port 6379/tcp and sets PublishAllPorts to true:
|
I'll see, if I can setup a dev environment to create patch for this tomorrow. Not sure, if I'll find time to map all variables from NetworkSettings, but I'd recon that ports and ip are what most tool require. |
skorhone
pushed a commit
to skorhone/libpod
that referenced
this issue
Jul 3, 2020
… NetworkSettings/Ports Implement mapping for NetworkSettings/Ports for Container inspect endpoint Signed-off-by: Sami Korhonen <[email protected]>
Tested locally on Ubuntu 20.04 LTS |
skorhone
pushed a commit
to skorhone/libpod
that referenced
this issue
Jul 7, 2020
… NetworkSettings/Ports Implement mapping for NetworkSettings/Ports for Container inspect endpoint Signed-off-by: Sami Korhonen <[email protected]>
Closed by #6852 |
github-actions
bot
added
the
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
label
Sep 23, 2023
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
kind/bug
Categorizes issue or PR as related to a bug.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
/kind bug
Description
Steps to reproduce the issue:
Create a container with published ports
Call docker compatible container inspect api endpoint
Describe the results you received:
Ports is returned as null. There is no code for mapping NetworkSettings
Describe the results you expected:
NetworkSettings is returned with published Ports. If random host port was requested (port was undefined), then ranomized port should be returned as HostPort
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:The text was updated successfully, but these errors were encountered: