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

Add latest/last flag for nerdctl ps #598

Merged
merged 1 commit into from
Dec 8, 2021

Conversation

junnplus
Copy link
Member

@junnplus junnplus commented Dec 7, 2021

Add latest/last flag for nerdctl ps.

./nerdctl ps -a
CONTAINER ID    IMAGE                              COMMAND                   CREATED         STATUS     PORTS                     NAMES
29ae8a32d289    docker.io/library/mariadb:10.5     "docker-entrypoint.s…"    40 hours ago    Up                                   nerdctl_db_1
2be507bf4505    docker.io/library/nginx:alpine     "/docker-entrypoint.…"    11 hours ago    Unknown    127.0.0.1:8080->80/tcp    nginx
5916641ea7af    docker.io/library/wordpress:5.7    "docker-entrypoint.s…"    40 hours ago    Up         0.0.0.0:8080->80/tcp      nerdctl_wordpress_1
./nerdctl ps --latest
CONTAINER ID    IMAGE                             COMMAND                   CREATED         STATUS     PORTS                     NAMES
2be507bf4505    docker.io/library/nginx:alpine    "/docker-entrypoint.…"    11 hours ago    Unknown    127.0.0.1:8080->80/tcp    nginx
./nerdctl ps --last 2
CONTAINER ID    IMAGE                              COMMAND                   CREATED         STATUS     PORTS                     NAMES
2be507bf4505    docker.io/library/nginx:alpine     "/docker-entrypoint.…"    11 hours ago    Unknown    127.0.0.1:8080->80/tcp    nginx
5916641ea7af    docker.io/library/wordpress:5.7    "docker-entrypoint.s…"    40 hours ago    Up         0.0.0.0:8080->80/tcp      nerdctl_wordpress_1

cmd/nerdctl/ps.go Outdated Show resolved Hide resolved
cmd/nerdctl/ps.go Outdated Show resolved Hide resolved
@AkihiroSuda
Copy link
Member

Please squash commits

@junnplus junnplus force-pushed the ps-latest branch 3 times, most recently from efa465c to 4282a61 Compare December 7, 2021 10:42
Signed-off-by: ye.sijun <junnplus@gmail.com>
@junnplus junnplus requested a review from AkihiroSuda December 8, 2021 03:23
@AkihiroSuda AkihiroSuda added this to the v0.14.1 milestone Dec 8, 2021
Copy link
Member

@AkihiroSuda AkihiroSuda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@AkihiroSuda AkihiroSuda merged commit 540dbd4 into containerd:master Dec 8, 2021
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

Successfully merging this pull request may close these issues.

2 participants