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

Container dashboard is not showing the creation date - nerdctl #5877

Open
IsaSih opened this issue Oct 31, 2023 · 1 comment
Open

Container dashboard is not showing the creation date - nerdctl #5877

IsaSih opened this issue Oct 31, 2023 · 1 comment

Comments

@IsaSih
Copy link
Contributor

IsaSih commented Oct 31, 2023

Problem Description

Container dashboard is not showing the container creation date when container engine used is nerdctl

Screenshot 2023-10-30 at 5 54 36 PM

Proposed Solution

The Started field in the dashboard must display the content of the Created field as per the command below:

nerdctl ps --namespace default
CONTAINER ID    IMAGE                             COMMAND                   CREATED           STATUS    PORTS                   NAMES
a709469e62e1    docker.io/library/nginx:latest    "/docker-entrypoint.…"    17 seconds ago    Up        0.0.0.0:5500->80/tcp    nginx-a7094

Additional Information

No response

@mook-as
Copy link
Contributor

mook-as commented Oct 31, 2023

container.started =
container.State === 'running' ? container.Status : '';

We're taking the Status property and listing it in the table.
docker:

{ …
    "Status": "Up 17 hours"
… }

nerdctl:

{ …
    "Status": "Up",
… }

The information to see when it started simply isn't there. Even for <docker|nerdctl> inspect, we have:

docker:

…
        "State": {
            "Status": "running",
            "Running": true,
            "Paused": false,
            "Restarting": false,
            "OOMKilled": false,
            "Dead": false,
            "Pid": 1400,
            "ExitCode": 0,
            "Error": "",
            "StartedAt": "2023-10-31T00:42:37.479407399Z",
            "FinishedAt": "0001-01-01T00:00:00Z"
        },
…

nerdctl:

…
        "State": {
            "Status": "running",
            "Running": true,
            "Paused": false,
            "Restarting": true,
            "Pid": 3936,
            "ExitCode": 0,
            "Error": "",
            "FinishedAt": "0001-01-01T00:00:00Z"
        },
…

So we don't have the ability to pick off .State.StartedAt either.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants