sdc docker连接

Posted 会飞の鱼

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sdc docker连接相关的知识,希望对你有一定的参考价值。

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

[[email protected] ~]# ./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

 

[[email protected] 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"

以上是关于sdc docker连接的主要内容,如果未能解决你的问题,请参考以下文章

TDH社区版搭建总结

docker 学习笔记21:docker连接网络的设置

docker远程连接失败,2375端口也是放开了的

docker 学习笔记之docker连接网络的设置

mac的docker不能连接linux docker

win11docker怎么连接容器