Giter VIP home page Giter VIP logo

docker-npc's Introduction

docker-npc

Docker 中运行 nps 的客户端。

要求和限制

  • 暂仅支持 WindowsMac 设备。

    你的设备上必须安装 Docker 桌面版(其中 Docker 引擎版本应在 18.03 及以上),若尚未安装,点击以下链接进入下载安装:

  • 务必使用 host.docker.internal 代替 127.0.0.1

    因为这是将 npc 运行在 Docker 容器内,因此,127.0.0.1 指向的是容器,而非容器的宿主,即你的设备。

    于是,在后台添加项目时,请将其配置项的 内网目标(ip:端口) 中的 127.0.0.1 替换为 host.docker.internal

使用

点击查看 nps 官方仓库中客户端的使用方法,Docker 版的使用方法完全一样,仅仅需要将命令 ./npc 替换为 docker run --rm jayfong/npc 即可,比如:

# 官方版
./npc -server=ip:port -vkey=web界面中显示的密钥

# Docker 版
docker run --rm jayfong/npc -server=ip:port -vkey=web界面中显示的密钥
# 官方版
./npc -config=npc配置文件路径

# Docker 版
docker run --rm -v ${PWD}/npc.conf:/npc/npc.conf jayfong/npc -config=/npc/npc.conf

升级

使用以下命令升级:

docker pull jayfong/npc

许可

Jay Fong © MIT

docker-npc's People

Contributors

fjc0k avatar

Forkers

jeazw

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.