GithubHelp home page GithubHelp logo

protonuniverse / topic Goto Github PK

View Code? Open in Web Editor NEW

This project forked from silenceshell/topic

0.0 0.0 0.0 234 KB

top in container.

License: MIT License

Go 98.77% Makefile 1.00% Dockerfile 0.23%

topic's Introduction

topic

top in container.

Running the original top command in a container will not get information of the container, many metrics like uptime, users, load average, tasks, cpu, memory, are about the host in fact. topic(top in container) will retrieve those metrics from container instead, and shows the status of the container, not the host.

Below shows a container of 2 cpu and 2 Gi running status when stress with --cpu 2.

topic.png

How to use

Download topic from GitHub release page to the container which you want to inspect, and add x attribute to the binary, then run the binary!

Or just create a container for a try:

# start a 2c2g container
$ docker run -it --name topic --rm --cpus 2 --memory 2g silenceshell/topic bash
# run topic in this container
root@04065eeff138:/# topic

How to build

Run make build for linux and amd64. topic only support on linux. If you want to run on other architectures, GOARCH is need to be set.

topic's People

Contributors

silenceshell avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.