Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VTOP in Docker Container #157

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#########################
# Run VTOP in a docker container by running
# docker run --rm -it --net=host --pid=host snpranav/vtop
#########################
FROM node:12.18-buster
MAINTAINER Pranav Shikarpur <contact@snpranav.com>

ENV LANG=en_US.utf8
ENV TERM=xterm-256color

RUN npm install -g vtop

CMD ["vtop"]
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@ npm install -g vtop

If you're on macOS, or get an error about file permissions, you may need to do ```sudo npm install -g vtop```. Don't do this if you're using [nvm](https://github.com/creationix/nvm).

The Docker Way
---
If you don't have Node.js installed, don't worry!
* Install docker from [here](https://docs.docker.com/get-docker/)
* Run the following command in your terminal,
```sh
docker run --rm -it --pid=host snpranav/vtop
```

Running
---

Expand Down