bash - How to show the ID of the oldest running docker container? -


i using docker docker version 1.3.2, build 50b8feb. there new filters ps command, seems nothing provide need. want see oldest container running, kill it, wait , kill next oldest one. hope can come around bash magic not able see @ moment. thanks!

update:

sort not want since resorts before reverting order.

oh yeah, captain obvious. needed use tail.

docker ps -aq | tail -n 1 

Comments

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -