How to resolve "npm install electron" stuck?

Add the electron_mirror and try again.

vi .npmrc 
registry="https://registry.npm.taobao.org"
electron_mirror="https://npm.taobao.org/mirrors/electron/"

How to install docker on CentOS

lsb_release -dirc

yum search docker