Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

218
Vistas
Trick to loop/autorefresh docker ps view like top/htop in bash

Is it possible - and if yes, how - to have a self-refreshing view of current Docker containers printed by "docker ps" alike top/htop utilities?

over 4 years ago · Santiago Trujillo
3 Respuestas
Responde la pregunta

0

Use watch:

watch docker ps

See man watch

over 4 years ago · Santiago Trujillo Denunciar

0

Few options:

  1. You can try command docker stats, which will give you some details about current running containers id, cpu%, memory etc. Something similar to top/htop which you asked for.

  2. Command docker top CONTAINER [ps OPTIONS] : It displays the running processes of a container.

  3. There are also some applications available which gives nice view of your docker ecosystem. Eg- Kitematic, Kevana

over 4 years ago · Santiago Trujillo Denunciar

0

As alternative to watch, there is an alias shown to loop docker stats (watch: might not be always available by default)

This creates a bash alias "ds"

alias ds='while true; do TEXT=$(docker stats --no-stream $(docker ps --format={{.Names}})); sleep 0.1; clear; echo "$TEXT"; done'

from: https://github.com/docker/docker/issues/20973

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda