triton user: jill
/root/.sdc/docker/jill 下
root@1f6af9d8-8ed9-e940-9c6c-d9505ca25896:~/.sdc/docker/jill# ll
total 8
drwxr-xr-x 2 root root 6 May 4 02:39 ./
drwxr-xr-x 3 root root 3 May 4 02:39 ../
-rw-r--r-- 1 root root 1229 May 4 02:39 ca.pem
-rw-r--r-- 1 root root 964 May 4 02:39 cert.pem
-rw-r--r-- 1 root root 208 May 4 02:39 env.sh
-rw-r--r-- 1 root root 1675 May 4 02:39 key.pem
root@1f6af9d8-8ed9-e940-9c6c-d9505ca25896:~/.sdc/docker/jill# cat env.sh
export DOCKER_CERT_PATH=/root/.sdc/docker/jill
export DOCKER_HOST=tcp://192.168.7.117:2376
export DOCKER_CLIENT_TIMEOUT=300
export COMPOSE_HTTP_TIMEOUT=300
unset DOCKER_TLS_VERIFY
alias docker="docker --tls"
# source env.sh
设置apt-get代理:
# vi /etc/apt/apt.config
添加 Acquire::http::Proxy "http://ip:port";
#apt-get install docker
安装docker-compose
#apt-get install python-pip
#pip install docker-compose
安装node.js
# tar -xf node-v6.10.3-linux-x64.tar.xz
# export PATH=/root/m/node-v6.10.3-linux-x64/bin:$PATH
这里带的npm不好用,删掉
安装npm包管理工具
#apt-get install npm
设置npm代理:
# npm config set proxy=http://ip:port
安装triton 工具
# npm install -g triton
安装json工具
# npm install -g json
创建profile
# triton profile create
(貌似不用装triton阿)