In your .bashrc put alias dockertop='docker stats $(docker ps --format={{.Names}})' Then logout, login again and give dockertop To exit hit CTRL+C