Sign inSign up

ewsdocker/alpine-htop

By ewsdocker

Updated over 6 years ago

Htop for alpine linux in a docker container

Image
0

202

ewsdocker/alpine-htop repository overview

ewsdocker/alpine-htop


This is a very small (16 MB) Alpine Linux docker implementation of the htop example in the docker run reference (see below). It is a simple example of the use of the built-in PID Namespace (--pid=) Linux virtualization.

The Dockerfile for the alpine-htop image is short and simple, and can easily be entered from a console editor. However, I use this example a lot and have tired of entering it for each use. Hence, this image.


Docker Image

A docker image is available for download from ewsdocker/alpine-htop on Docker Hub

docker pull ewsdocker/alpine-htop

Dockerfile
FROM ewsdocker/alpine-base:3.10.0
RUN apk add --update htop && rm -rf /var/cache/apk/*
CMD ["htop"]**  

Running alpine-htop

The following line will install and run ewsdocker/alpine-htop:

docker run -it --rm --pid=host --userns=host --name=htop ewsdocker/alpine-htop:3.10.0 

Exiting alpine-htop

The container is exited by giving focus to the container and then using the ctrl-c keyboard combination to exit the container.


Licensed under the GNU General Public License, GPL-3.0-or-later.

Read the license at https://github.com/ewsdocker/alpine-htop/wiki/License


Attribution

Based on example run htop inside a container from the docker run reference at https://docs.docker.com/engine/reference/run/#example-run-htop-inside-a-container

Tag summary

Content type

Image

Digest

Size

22.1 MB

Last updated

over 6 years ago

docker pull ewsdocker/alpine-htop:3.10.0