sdc docker连接

 curl -O https://raw.githubusercontent.com/joyent/sdc-docker/master/tools/sdc-docker-setup.sh && chmod +x sdc-docker-setup.sh

[root@a6c17613-5f58-ef76-8f6d-fecd639957b0 ~]# ./sdc-docker-setup.sh -k https://cloudapi.bst-1.bstjpc.com mhc ~/.ssh/id_rsa Setting up Docker client for SDC using:     CloudAPI:        https://cloudapi.bst-1.bstjpc.com     Account:         mhc     Key:             /root/.ssh/id_rsa

If you have a pass phrase on your key, the openssl command will prompt you for your pass phrase now and again later.

Verifying CloudAPI access. Enter pass phrase for /root/.ssh/id_rsa: CloudAPI access verified.

Generating client certificate from SSH private key. Enter pass phrase for /root/.ssh/id_rsa: 140737471448992:error:28069065:lib(40):UI_set_result:result too small:ui_lib.c:869:You must type in 4 to 8191 characters Enter pass phrase for /root/.ssh/id_rsa: Wrote certificate files to /root/.sdc/docker/mhc

Get Docker host endpoint from cloudapi. Enter pass phrase for /root/.ssh/id_rsa: Docker service endpoint is: tcp://109.105.7.104:2376

 

[root@a6c17613-5f58-ef76-8f6d-fecd639957b0 mhc]# cat env.sh
export DOCKER_CERT_PATH=/root/.sdc/docker/mhc
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"

转载于:https://www.cnblogs.com/mhc-fly/p/6907703.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值