mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2025-12-08 14:22:40 +01:00
remove glances doesnt work
Signed-off-by: Jessica Frazelle <acidburn@docker.com>
This commit is contained in:
@@ -1,30 +0,0 @@
|
|||||||
# Run glances in a container
|
|
||||||
# https://github.com/nicolargo/glances
|
|
||||||
#
|
|
||||||
# docker run --rm -it \
|
|
||||||
# --pid host \
|
|
||||||
# --ipc host \
|
|
||||||
# --net host \
|
|
||||||
# --name glances \
|
|
||||||
# jess/glances
|
|
||||||
|
|
||||||
FROM alpine:latest
|
|
||||||
|
|
||||||
ENV GLANCES_VERSION 2.4.2
|
|
||||||
RUN apk update && apk add \
|
|
||||||
ca-certificates \
|
|
||||||
curl \
|
|
||||||
gcc \
|
|
||||||
python \
|
|
||||||
py-pip \
|
|
||||||
&& rm -rf /var/cache/apk/*
|
|
||||||
|
|
||||||
RUN curl -L "https://github.com/nicolargo/glances/archive/v${GLANCES_VERSION}.tar.gz" -o /tmp/glances.tar.gz \
|
|
||||||
&& mkdir -p /usr/src/glances \
|
|
||||||
&& tar -xzf /tmp/glances.tar.gz -C /usr/src/glances \
|
|
||||||
&& rm /tmp/glances.tar.gz* \
|
|
||||||
&& cd /usr/src/glances/glances-${GLANCES_VERSION} \
|
|
||||||
&& python setup.py install \
|
|
||||||
&& rm -rf /usr/src/glances
|
|
||||||
|
|
||||||
ENTRYPOINT [ "glances" ]
|
|
||||||
@@ -1,30 +0,0 @@
|
|||||||
Glances - An eye on your system
|
|
||||||
================================
|
|
||||||
|
|
||||||
[Glances](https://github.com/nicolargo/glances) is a cross-platform
|
|
||||||
curses-based system monitoring tool written in Python.
|
|
||||||
|
|
||||||
### Run in a container
|
|
||||||
|
|
||||||
For the standalone mode, just run:
|
|
||||||
```
|
|
||||||
$ docker run --rm -it --pid=host --ipc=host --net=host --privileged infoslack/glances
|
|
||||||
```
|
|
||||||
|
|
||||||
### Using
|
|
||||||
|
|
||||||
For the Web server mode, run:
|
|
||||||
```
|
|
||||||
$ glances -w
|
|
||||||
```
|
|
||||||
and enter the URL `http://<ip>:61208` in your favorite web browser.
|
|
||||||
|
|
||||||
For the client/server mode, run:
|
|
||||||
```
|
|
||||||
$ glances -s
|
|
||||||
```
|
|
||||||
on the server side and run:
|
|
||||||
```
|
|
||||||
$ glances -c <ip>
|
|
||||||
```
|
|
||||||
on the client one.
|
|
||||||
Reference in New Issue
Block a user