Docker Community Forums

Share and learn in the Docker community.

Docker ps sort by name, sort by etc?


(Dockershmocker2017) #1

how do I sort docker ps output
docker ps

by container ID
?


(Sam) #2

you would have to use some other utility like sort, in linux


(Advithdevops) #3

This comamnd worked for me to sort output…

docker ps -a | sort