码迷,mamicode.com
首页 > 其他好文 > 详细

docker 配置项

时间:2020-07-29 15:08:05      阅读:57      评论:0      收藏:0      [点我收藏+]

标签:top   gis   site   lse   latest   style   color   管理员   https   

------------恢复内容开始------------

{
    "registry-mirrors": [
        "http://hub-mirror.c.163.com",
        "https://registry.docker-cn.com",
        "https://docker.mirrors.ustc.edu.cn"
    ],
    "insecure-registries": [],
    "debug": true,
    "experimental": false
}

网易的镜像地址好像最快

#1 管理员权限运行
docker stop taro3
docker rm taro3

#docker run -itd --name taro3 node:latest
docker run -itd -v $PWD/:/home/taro --name taro3 node:latest

docker exec -it taro3 /bin/bash
npm config get registry
npm config set registry https://registry.npm.taobao.org/
yarn config get registry
yarn config set registry https://registry.npm.taobao.org/


npm config set sass_binary_site https://npm.taobao.org/mirrors/node-sass/

yarn config set sass_binary_site https://npm.taobao.org/mirrors/node-sass/


yarn config delete proxy

npm config rm proxy

npm config rm https-proxy

yarn global add mirror-config-china

yarn global add node-sass

yarn global add @tarojs/cli

yarn install 

npm rebuild node-sass --save-dev

yarn run dev:weapp

完整运行

docker 配置项

标签:top   gis   site   lse   latest   style   color   管理员   https   

原文地址:https://www.cnblogs.com/qkstart/p/13396680.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!