GT 后端部署

From GoToken's Wiki!
Revision as of 20:56, 21 April 2020 by Koki (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

安装[edit]

docker[edit]

https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-18-04

根据教程执行到 step2 ,把 sudo 权限配置给当前用户(如leec)

docker 相关命令[edit]

  • pull 最新 image
   docker pull registry.cn-hongkong.aliyuncs.com/gotoken/gt-backend:[根据版本]
  • 停止正在运行的 container
   docker stop $(docker ps -a -q)

run[edit]

   docker run -d -p 8000:80 registry.cn-hongkong.aliyuncs.com/gotoken/gt-backend:[根据版本]
   dev
   docker run -d -p 5000:80 registry.cn-hangzhou.aliyuncs.com/leec121/gt-backend-dev:latest