进入容器命令窗口
sudo docker exec -it iotd-nodered /bin/bash
设置代理
//淘宝
npm config set registry http://registry.npm.taobao.org/
//淘宝2
npm config set registry https://registry.npmmirror.com/
//官方
npm config set registry https://registry.npmjs.org/
取消代理
npm config delete proxy
npm config delete https-proxy
查看代理
npm get registry
退出容器命令窗口
exit