How to show "time elapsed since created" with `docker ps --format "..."`?

Just figured it out.

I needed to use the “RunningFor” field, which says how long ago the container was created.

E.g.,

$ docker ps --format “table {{.Names}}\t{{.Status}}\t{{.RunningFor}} ago”