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

I using docker Docker version 1.3.2, build 50b8feb. There are some new filters for the ps command, but it seems nothing provide what I need. I just want to see the oldest container running, to kill it, wait and kill the next oldest one. I hope somebody can come around with some bash magic I am not able to see at the moment. Thanks!

UPDATE:

  • Multiple commands during docker run
  • Clojure: Connecting to a TLS enable docker daemon using aleph
  • Add file to docker container to be used during startup
  • Installing an uptodate version of Mono on Ubuntu using docker
  • Docker container cannot connect to linked containers services
  • Install mysqlclient-python in Docker
  • sort does not what I want since it also resorts before reverting order.

  • Firefox Proxy to Docker Fiddler refusing connection
  • WSL in Windows Container
  • connect via ssh to jhipster docker container on CentOS 7
  • How to map subdomains to multiple docker containers (as web servers) hosted using Elastic Bean Stack on AWS
  • Adding sphinx container docker-compose shows an error
  • Docker host information and cluster
  • One Solution collect form web for “How to show the ID of the oldest running docker container?”

    Oh yeah, captain obvious. I just needed to use tail.

    docker ps -aq | tail -n 1
    
    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.