Bluemix 本博曾经介绍过: 利用Bluemix搭建免费科(翻)技(墙)
上面的文章是介绍goproxy实现的免费爬墙。
但是TM文章中的图全挂了,没办法贴图库的锅~~
等有时间,我将修复一下~
本文主要介绍 Bluemix 注册,绑信用卡,部署Docker ~~
2017年4月8日13:13:12 更新:Bluemix登录面板遇到十几个登录选项,该如何登录?请查看【如何登录】部分。
2017年4月4日11:13:22 更新:俄罗斯的虚拟信用卡貌似已经无法升级账号。求助万能的淘宝吧。
2017年3月8日17:56:17 更新:新添加内存如何限制内容~ 简单说明了一个常用API~
2017年3月8日12:03:07 更新:绑定信用卡注意事项 又完善了一下!~
2017年3月7日11:28:26 更新:部署步骤中少了一个推送镜像~已经补上~ 新增性能跑分图,以及SS
2017年3月6日18:58:11 更新:如果出现 【提示注册期间发生故障】请挂代理尝试注册~
2017年3月6日18:56:36 更新:文章刚出,就有大佬挑毛病了。关于365G说法,请看免费额度中的描述~
官方地址
https://console.ng.bluemix.net/
免费额度
新注册用户,不需要绑定信用卡,可以在免费的额度内玩30天!
30天到期后,必须绑卡。
成功绑卡后,就可以在免费的额度内无限玩了。
我们就说说容器的限制:
- 容器的数量 没有限制~
- 每月365G小时的实例~
- 磁盘空间 20 GB~
- 2个静态IP
实例的数量受容器大小的影响 有所不同~
这里解释一下: 每月365G/小时的实例 是这么限制的
真难理解~~ 365G每小时 是内存,不是流量~
对于个人来说,也够了~~~
注册账号
注册信息没有什么注意事项。
国家我选择的是美国~
最下面有一个是否邮件 和 电话联系你,建议把勾去掉~
查收邮件激活账户~
激活成功~
登录账号,开始玩耍了~
操作向导
登录成功后,系统有一个操作向导。推荐按照操作向导设置一下空间~
同意TOS协议~ 不同意没法玩~
创建组织~ 组织放到哪?随便吧~
我选择美国~
创建空间~
创建成功~~
绑定信用卡
新注册用户有30天免费试用~ 不需要绑定信用卡~
过了30天后必须绑定信用卡才能玩耍~
当然,我们可以不绑定真实的卡~ 你懂的
重要内容:绑卡技巧~~~
博主推荐使用俄罗斯的虚拟卡激活 ~ 亲测100%成功~
>>>>> yandex.ru来自俄罗斯虚拟信用卡申请指南 <<<<<
申请这个虚拟信用卡,一定要填写 Owner’s name 信息
Bluemix绑信用卡时:
名和姓必须是 Owner’s name ,国家一定选择俄罗斯 ,
State 要选择 Other ,
电话号码 +7 开头的 俄罗斯号码,
尽量百度一个俄罗斯的地址~ 看上去真实一点儿~
2017年3月8日亲测 还是可以通过审核的~
容器操作
访问:https://console.ng.bluemix.net/dashboard/containers
即可管理我们的容器了~
2017年3月6日22:16:14 更新说明:这里的操作,需要你有一台Linux服务器 推荐 Ubuntu 或者Debian 系统。
WebIDE 亲测不行~
不过你可以试一试这个免费2小时的VPS :
环境部署
本文演示,是 Ubuntu 14.0 系统操作的~
环境要求:Cloud Foundry、Bluemix 、 Docker
安装Cloud Foundry~
1 2 3 4 5 6 |
wget -q -O - https://packages.cloudfoundry.org/debian/cli.cloudfoundry.org.key | sudo apt-key add - echo "deb http://packages.cloudfoundry.org/debian stable main" | sudo tee /etc/apt/sources.list.d/cloudfoundry-cli.list sudo apt-get update sudo apt-get install cf-cli cf -v # ===> cf version 6.25.0+787326d.2017-02-28 |
安装Bluemix ~
1 2 |
sudo cf install-plugin https://static-ice.ng.bluemix.net/ibm-containers-linux_x64 # Do you want to install the plugin https://static-ice.ng.bluemix.net/ibm-containers-linux_x64?> y (这里输入Y) |
PS: 其他系统安装 Bluemix ~
1 2 3 4 5 6 7 8 9 10 |
OS X: cf install-plugin https://static-ice.ng.bluemix.net/ibm-containers-mac Linux 64-bit: cf install-plugin https://static-ice.ng.bluemix.net/ibm-containers-linux_x64 Linux 32-bit: cf install-plugin https://static-ice.ng.bluemix.net/ibm-containers-linux_x86 Windows 64-bit: cf install-plugin https://static-ice.ng.bluemix.net/ibm-containers-windows_x64.exe Windows 32-bit: cf install-plugin https://static-ice.ng.bluemix.net/ibm-containers-windows_x86.exe |
安装Docker 环境~ (如果已经安装可跳过)
1 2 3 |
wget -qO- https://get.docker.com/ | sh docker -v # ===> Docker version 1.12.6, build 78d1802 |
PS : CentOS6 需要升级内核才可以安装~ 自己搜索吧~
环境配置
登录我们的账号。
1 |
sudo cf login -a https://api.ng.bluemix.net |
输入邮箱 和 密码(密码输入不可见~)
注意:如果你在创建组织的时候选择的是英国,登录地址是:https://api.eu-gb.bluemix.net
如果你的服务器在国内,可能无法访问bluemix的相关网址,你懂得为什么~
加入以下hosts即可~
1 2 3 4 5 |
echo "169.54.245.68 api.ng.bluemix.net" |sudo tee -a /etc/hosts echo "5.10.124.140 api.eu-gb.bluemix.net" |sudo tee -a /etc/hosts echo "169.54.245.68 login.ng.bluemix.net" |sudo tee -a /etc/hosts echo "75.126.70.44 static-ice.ng.bluemix.net" |sudo tee -a /etc/hosts sudo /etc/init.d/networking restart |
初始化一下
1 |
sudo cf ic init |
创建命名空间
本例子命名空间是 ruyonettest
1 |
sudo cf ic namespace set ruyonettest |
拉取镜像
向本地拉取ssr的镜像
1 |
docker pull malaohu/ssr-with-net-speeder |
设置镜像别名
注意红字部分 和命名空间保持一致。
registry.ng.bluemix.net/ruyonettest
/ssr-with-net-speeder
1 |
docker tag malaohu/ssr-with-net-speeder registry.ng.bluemix.net/ruyonettest/ssr-with-net-speeder:latest |
推送镜像
将镜像别名推送到服务器上 准备部署
1 |
docker push registry.ng.bluemix.net/ruyonettest/ssr-with-net-speeder:latest |
部署Docker
执行完成回显示一个容器ID, 请记录~后面绑定IP要使用~
2017年3月8日16:58:14 更新这部分内容~
新增 -m 参数,用于控制容器内存~
详细内容请参考: API说明部分
1 2 3 |
cf ic run -d --name ssr-with-net-speeder -m 128 -p 8989:8989 registry.ng.bluemix.net/ruyonettest/ssr-with-net-speeder:latest -s 0.0.0.0 -p 8989 -k RUYO.net -m rc4-md5 -o http_simple -O auth_sha1 #===> 2aae9e60-ec06-49c7-a178-40fc052c3677 |
申请一个IP地址
1 2 3 |
cf ic ip request #===> The IP address "169.44.120.75" was obtained. |
将IP绑定到容器上
1 2 |
cf ic ip bind 169.44.120.75 2aae9e60-ec06-49c7-a178-40fc052c3677 #===> The IP address was bound successfully. |
可以到管理界面看我们新建的容器~
挂SS试一试效果~
演示搭建的#S#S#信息(随时可能失效~)
1 2 3 4 5 6 |
"server" : "169.44.120.75", "server_port" : 8989, "password" : "RUYO.net", "method" : "rc4-md5", "obfs" : "http_simple", "protocol" : "auth_sha1" |
更多镜像可见:
http://51.ruyo.net/p/2949.html#9
http://51.ruyo.net/p/3210.html#5
性能跑分
谢谢群友 @andy 提供图片~
API说明
这里简单的介绍一下比较常用的几个。
官方API详细说明: https://console.ng.bluemix.net/docs/containers/container_cli_reference_cfic.html
cf ic namespace [get | set NAME]
设置或者获取命名空间
cf ic ps
列出所有容器。(后面加上 --no-trunc
可以显示完整的容器ID~)
cf ic start/restart/stop/rm CONTAINER_ID
启动/重启/停止/删除/指定容器,CONTAINER_ID 是容器ID 使用 cf ic ps --no-trunc
可见~
cf ic run
这个命令官方介绍很清楚~ 这里只说明比较重要的几个。
-p 映射端口,映射多个端口 可添加多个-p
-e 环境变量,有些Docker需要传环境变量 -e "key1=value1" -e "key2=value2"
-m 限制内容为多大,如果限制内存为64M 那么命令直接是 -m 64
1 2 3 4 5 6 7 8 9 |
Pico(64 MB 内存,4 GB 磁盘空间) Nano(128 MB 内存,8 GB 磁盘空间) Micro(256 MB 内存,16 GB 磁盘空间) Tiny(512 MB 内存,32 GB 磁盘空间) Small(1024 MB 内存,64 GB 磁盘空间) Medium(2048 MB 内存,128 GB 磁盘空间) Large(4096 MB 内存,256 GB 磁盘空间) X-Large(8192 MB 内存,512 GB 磁盘空间) 2X-Large(16384 MB 内存,1 TB 磁盘空间) |
cf ic images
查看服务器上镜像集合
cf ic rmi IMAGE_ID
删除镜像 IMAGE_ID 是镜像ID 使用 cf ic images
可见~
cf ic ip list
查看已经申请的IP
cf ic ip request
申请一个IP地址,注意免费额度只有2个IP,千万别整多了~
cf ic ip bind IP CONTAINER_ID
将IP绑定到某个容器上,CONTAINER_ID 使用 cf ic ps --no-trunc
可见~
cf ic ip unbind IP CONTAINER
将IP从某个容器上解绑,CONTAINER_ID 使用 cf ic ps --no-trunc
可见~
cf ic ip release IP
释放某个IP
如何登录
有网友反映,Bluemix该怎么登录。马甲一看,吓一跳。
那么多登录选项。
经过测试,发现一种登录的方式:
首先访问:https://idaas.iam.ibm.com/idaas/mtfim/sps/authsvc?PolicyId=urn:ibm:security:authentication:asf:basicldapuser
使用邮箱密码登录!显示登录成功
然后再访问:https://console.ng.bluemix.net/dashboard/apps
即可了。
最后说明
有人问这家速度怎么样?
挺慢的~~~
不过支持全部端口,懂的人会利用起来的~
流量也挺充足~
用途挺多~~~ 我们慢慢发现~
参考文献:
https://jialezi-wp.mybluemix.net
帐户已升级
您的帐户已经升级为“现买现付”帐户。现在,您可以访问 Bluemix 目录中的所有产品,包括“基础架构”、“应用程序”和“服务”。
暂挂的帐户
此帐户中的应用程序和服务已停止。添加有效的信用卡和帐单地址可恢复帐户活动并重新启动应用程序。
这是什么情况 我以前申请的用的俄罗丝的信用卡 刚刚登录就显示这个 然后就自动跳转注销了
螺丝卡 已经不行了。建议换其他卡试一试~
万能的淘宝可能对你有帮助
现在应该不能用了吧!

把小马甲的镜像改了一下,用上ssr auth_chain_b啦
有没有用Windows部署的方法
界面好像是改了~小白完全看不懂了~~~
现在,美国南部不能初始化上传镜像了,英国还可以
{
"code": "IC5097E",
"description": "Authentication was not successful: The container service has not been enabled for this org. Please login via \u2018bx login ...' + \u2018bx ic init ...' and try again.",
"environment": "prod-dal09",
"host_id": "177",
"incident_id": "4504-1496820876.544-2359682",
"name": "InvalidToken",
"rc": "401",
"type": "Infrastructure"
博主,网速大概能达到多少?我只有几十k到300k不等
cf ic run -d --name ssr-with-net-speeder -m 128 -p 8989:8989 registry.ng.bluemix.net/ruyonettest/ssr-with-net-speeder:latest -s 0.0.0.0 -p 8989 -k RUYO.net -m rc4-md5 -o http_simple -O auth_sha1
#===> 2aae9e60-ec06-49c7-a178-40fc052c3677
求解 部署的时候出现这个怎么办
為啥我綁定信用卡的時候會出現?
錯誤: Could not place order. Problem authorizing the credit card. We are unable to process your request: Transaction Rejected. Please contact accounting support at accounting@softlayer.com or 866-325-0045, option 3 for further information.
目前信用卡已经被封。
好像是每个地区免费2个ip 不知道容器是不是这样的
我看好像是这样的
用这个装吧,,, 环境烦死了 docker pull reachlin/bluemix
root@150-95-141-186:~# cf ic ip request
FAILED
The client key pair could not be loaded. Enter "cf ic init" to initialize it.
教程绝对有问题啊,部署镜像错误,sudo cf ic init初始化也没用
重启一下docker 好了 谢谢大佬分享
部署过程很成功但
搭建完ss没法联网(无网络链接) 有木大佬有指点 0.0
请问博主知道哪里能买到已认证的账号吗?
按照教程自己撸多好~
这个主机是不是不能用锐捷?
锐捷???
打错,是锐速。。。
那不能~ 哈哈
能否录个视频教程给小白看???
绑定yandex虚拟信用卡时返回Transaction Rejected,不知道是已经撸坏了还是哪里填错了
绑到hyper上倒是一次成功
我也是呀
电话不一定,但是地址一定要是俄罗斯的,我这么写就过了
请问下怎么绑定全部端口
https://console.ng.bluemix.net/docs/pricing/index.html#pricing
这边写着:
“如果您在免费试用期间转换您的帐户,那么免费限额限制为每个服务通常提供的限额。限额不再是免费试用期间许多 IBM 服务提供的不受限使用限额。”
是不是说试用没到期直接绑卡,就不再享有免费的那部分额度了?
应该是这个意思~
你可以等试用到期后再绑卡。
试用和绑卡免费额度是一样的吧~
很诡异,我试用期没到就绑卡了,然后现在创建容器的时候提示容器定价:
Default
Use one or more containers free for 365 GB-hours free each month, use 20 GB free external storage and 2 static public ips free each month with your containers
但是又在我的使用情况仪表板里面显示2个公网ip要US$4.12...不知道到底要不要钱
到下个对账日期看看就行了。
版主,向上push时报一下错误,要怎么搞
788936416138: Preparing
8ea0a8caf8da: Preparing
b8068c9e6551: Preparing
9a16a5556d5b: Preparing
0bd5e3d5ea42: Preparing
3b4eb6f45320: Waiting
5ea89356f959: Waiting
5f70bf18a086: Waiting
0d81735d8272: Waiting
982549bd6b32: Waiting
8698b31c92d5: Waiting
unauthorized: authentication required
重新初始化插件
部署成功,谢谢了
你好请问拉取s sr镜像这一步你用的是楼主的那个malaohu吗
推送镜像
将镜像别名推送到服务器上 准备部署 出现 no basic auth credentials,怎么回事? 大佬
重装一次插件解决了。
什么插件
可以了,重新初始化插件解决
我之前也遇到这个错误,但是我的解决方案是在push之前用sudo cf ic login这个命令又登录了一次就好了,注意,跟上面的sudo cf login -a https://api.ng.bluemix.net不一样
为啥usage dashboard 里有 container charges $2.06?
是1个公网ip一个月的费用
docker pull malaohu / ssr-with-net-speeder
使用默认标记:latest
警告:未能从守护程序获取默认注册表端点(在尝试连接到UNIX服务器上的Docker守护程序套接字时,获取权限被拒绝:///var/run/docker.sock:Get http://%2Fvar%2Frun%2Fdocker.sock /v1.26/info:dial unix /var/run/docker.sock:connect:permission denied)。 使用系统默认值:https://index.docker.io/v1/
在unix尝试连接到Docker守护程序套接字时拒绝了权限:///var/run/docker.sock:Post http://%2Fvar%2Frun%2Fdocker.sock/v1.26/images/create?fromImage = malaohu%2Fssr-with-net-speeder&tag = latest:dial unix /var/run/docker.sock:connect:permission denied
你这应该是 webide 吧。
推荐一个镜像。https://hub.docker.com/r/cndocker/kcptun-socks5-ss-server/
我Ubuntu 14.04.5 LTS,按照你的命令装docker ,装好是 Docker version 17.03.0-ce, build 60ccb22。
然后 docker pull 也错误
Warning: failed to get default registry endpoint from daemon (Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?)
. Using system default: https://index.docker.io/v1/
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? 怎么回事啊,老大。
国内服务器么?可能Docker服务网址被墙~ 把hosts加上~
service docker start
使用sudo可以
俄罗斯虚拟信用卡今晚验证失败,不知道是不是个例
Problem authorizing the credit card. We are unable to process your request: Transaction Rejected. Please contact accounting support at accounting@softlayer.com or 866-325-0045, option 3 for further information. 两天了验证信用卡一直提示这个
绑定信用卡失败:
错误: Problem authorizing the credit card. We are unable to process your request: Transaction Rejected
各位大佬,绑定yandex信用卡翻车了么,我这出现这个错误:
错误: Problem authorizing the credit card. We are unable to process your request: Transaction Rejected. Please contact accounting support at accounting@softlayer.com or 866-325-0045, option 3 for further information.
allenge for https://registry.ng.bluemix.net/v2/ - errors: [
asic auth attempt to https://registry.ng.bluemix.net/v2/ re
lm "IBM Containers Registry" failed with status: 401 Unauth
rized]
root@ubuntu:~# docker push registry.ng.bluemix.net/***/u
untu-sshd:latest
The push refers to a repository [registry.ng.bluemix.net/***/ubuntu-sshd] (len: 1)
ca29dba03dc2: Image push failed
Please login prior to push:
Username:
Password:
Email:
FATA[0023] Error response from daemon: no successful auth c
allenge for https://reg
push时为何提示需要登陆?之后又显示未授权?
重新初始化一下。
请问大佬:你部署Docker的参数是什么?能指点一下吗?
1、绑卡失败、不能用空卡 2、365小时runtime变成了每月免费默认2小时https://www.ibm.com/cloud-computing/bluemix/pricing
Up to 2GB runtime and container memory, and access to many IBM services
真是见光死
免费额度没有变。
CONTAINER_ID可以用创建容器时指定的name代替
在windows上部署到安装Bluemix下载完安装时显示
Installing plugin ibm-containers-windows_X86.exe...
FAILED
exit status 2
CentOs6.5上也是,安装不了,不知怎么过?都是以管理员(root)用户运行,但都是FAILED。
我在ubuntu安装的时候也是失败,在安装的命令前加上LANG=en_US.UTF-8试试
大佬,还是拉取ssr出错 ,显示找不到存储库。
而国内镜像嘛Error response from daemon: could not find image: no such id: malaohu/ssr-with-net-speeder,显示找不到图像。
看上去名称没问题呀。你把命令详细贴出来 瞅瞅?
绑定不了信用卡
Problem authorizing the credit card. We're afraid this transaction has been rejected. General decline of the card. No other information provided by the issuing bank.
绑定信用卡按照你改的都改了,还是不行,提示Problem authorizing the credit card. We are unable to process your request: Transaction Rejected.
root@testq:~# docker push registry.ng.bluemix.net/prod/ssr-with-net-speeder:latest
The push refers to a repository [registry.ng.bluemix.net/prod/ssr-with-net-speeder]
788936416138: Preparing
8ea0a8caf8da: Preparing
b8068c9e6551: Preparing
9a16a5556d5b: Preparing
0bd5e3d5ea42: Preparing
3b4eb6f45320: Waiting
5ea89356f959: Waiting
5f70bf18a086: Waiting
0d81735d8272: Waiting
982549bd6b32: Waiting
8698b31c92d5: Waiting
unauthorized: authentication required
怎么处理?老大
重新初始化即可。
绑卡一直提示Could not place order. An uncaught exception was encountered. Please contact Sales,按步骤来的,不知道哪里出问题了
部署好了,但没办法启动容易,一直失败
# docker pull registry.alauda.cn/malaohu/ssr-with-net-speeder
Using default tag: latest
Trying to pull repository registry.alauda.cn/malaohu/ssr-with-net-speeder ...
Pulling repository registry.alauda.cn/malaohu/ssr-with-net-speeder
Error: image malaohu/ssr-with-net-speeder:latest not found
root@ubuntu:~# sudo cf ic login -a https://api.ng.bluemix.net
flag provided but not defined: -a
Usage of pluginCommand:
-f Force
-force
Force
-host string
CCSAPI_HOST
flag provided but not defined: -a
无法登陆,怎么办?
cf login -a https://api.ng.bluemix.net
root@ubuntu:~# sudo cf ic login -a https://api.ng.bluemix.net
Not logged in. Use "cf login" to log in.
这是怎么回事?
无法登陆
没有ic 你是直接使用root用户登录的 也不用sudo cf login -a https://api.ng.bluemix.net
这怎么办呢?输入cf login就会提示输入api
root@yeghog:~# cf login -a https://api.ng.bluemix.net
API endpoint: https://api.ng.bluemix.net(此处是输入上面那条命令之后自己出现的)
Email> 在这里填写你的bluemix注册是的邮箱
Password>在这里输入你的密码
没太明白你说的问题,正常的登录是我上面说的这样
我也绑不上老毛子的信用卡,严格按照说明了啊,名字保持,国家也选的俄罗斯
注意名 和 姓的顺序~
绑不上是提示什么?我右上角没有倒计时了,但是我点基础架构提示升级暂挂,需要额外复查,昨天绑卡到今天都没通过,是不是悲剧了
本文已经更新了最新的注意事项。亲测了一下还是可以绑定的~
俄国老的信用卡不行
目前还没有收到无法验证的返馈。请仔细看文章
绑定俄罗斯的虚拟信用卡老提示
Problem authorizing the credit card. We are unable to process your request: Transaction Rejected.
安装Bluemix ~
sudo cf install-plugin https://static-ice.ng.bluemix.net/ibm-containers-linux_x64
# Do you want to install the plugin https://static-ice.ng.bluemix.net/ibm-containers-linux_x64?> y (这里输入Y)
看了下官方文档 这里安装的其实是ic插件
sudo cf ic login -a https://api.ng.bluemix.net 输入这行 提示Not logged in. Use "cf login" to log in. 然后按照提示输入后 要求输入API endpoint 怎么办?
这个API endpoint 在哪看?
sudo cf login -a https://api.ng.bluemix.net
将IP绑定到容器上
命令开头少一个cf吧
确实少了。博主明天加上
安装Bluemix时(sudo cf install-plugin https://static-ice.ng.bluemix.net/ibm-containers-linux_x64)显示
{Installing plugin ibm-containers-linux_x64...
FAILED
exit status 2
}
这是为啥呢
这个需要先在网页上创建一个容器吗?
可以直接通过命令创建。
输入sudo cf install-plugin https://static-ice.ng.bluemix.net/ibm-containers-linux_x64
出现
**Attention: Plugins are binaries written by potentially untrusted authors. Install and use plugins at your own risk.**
Do you want to install the plugin https://static-ice.ng.bluemix.net/ibm-containers-linux_x64?> Y
Attempting to download binary file from internet address...
10088681 bytes downloaded...
Installing plugin ibm-containers-linux_x64...
FAILED
exit status 2
是为什么
重新初始化~
漏了一步 sudo cf ic login
能不能再虚拟机装ubuntu然后安装上面的东西
可以。我就是这么搞的
为什么docker pull malaohu/ssr-with-net-speeder和docker pull registry.alauda.cn/malaohu/ssr-with-net-speeder效果一样?他们不是在不同的地方吗。怎么直接填相对地址也可以用?
因为按照作者的步骤走设置了别名了...可以理解为前面的名称是后面的缩写
安装失败,登录以后无法初始化,后面的操作都无法进行,怎么办?
root@ubuntu:~# sudo cf ic init
Deleting old configuration file...
Generating client certificates for IBM Containers...
{
"code": "IC5076E",
"description": "The namespace has not yet been specified. A namespace must be set for your organization before you can work with IBM Containers and cannot be changed once set. You can use 'cf ic namespace set NAMESPACE' to set the namespace.",
"environment": "prod-dal09",
"host_id": "177",
"incident_id": "2777-1488870105.596-2486153",
"name": "NamespaceNotSpecified",
"rc": "404",
"type": "Infrastructure"
}
先在网页上创建一下容器试试。这是说你没有设置命名空间。
网页上怎么创建容器,和设置命名空间
自定义镜像,无法直接网页上创建~ 必须使用命令~
Warning: failed to get default registry endpoint from daemon (Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?)
. Using system default: https://index.docker.io/v1/
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? 怎么回事啊,老大。
国内服务器访问Docker 可能是被墙的~
可以去看看国内的镜像~
docker pull registry.alauda.cn/malaohu/ssr-with-net-speeder
这是我搭建的国内镜像 你可以试一试~
root@coding:/home/coding/workspace# docker pull registry.alauda.cn/malaohu/ssr-with-net-speeder
Using default tag: latest
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? ,难道是WEBIDE不行吗?
webide 是不行的。
一样,还是提示一样的错误,进行不下去了
看来你的Docker安装有向题。
“is the docker daemon running?”
docker进程开了么
bluemix有歧义的地方很多 说是512免费 ,但选了512M内存的配置,默认硬盘空间是32G,会超过20G硬盘免费额度。到时候收不收费就不知道了。。。估计是个坑
嗯 确实~ 博主英语太渣,看他的说明挺费劲~~
他家有一个定价计算器,你可以去看看~
https://console.ng.bluemix.net/?direct=classic/&cm_mc_uid=73156691499814884212779&cm_mc_sid_50200000=1488858647#/pricing/cloudOEPaneId=pricing&paneId=pricingSheet
国内信用卡可以使用么。有无影响呢。
不建议绑定自己的信用卡。因为一旦你超免费额度 会被扣费的~
#push到bluemix
docker push registry.ng.bluemix.net/jialezi/ss:latest
这时在后台就能看见这个镜像了
掉了一步
#push到bluemix
docker push registry.ng.bluemix.net/jialezi/ss:latest
这时在后台就能看见这个镜像了
终于搞好了,网速确实慢,只有几十KB,凑合着可以用。
厉害我的大佬~~
感谢大佬,不明觉厉!
我解决了,需要安装插件
cf install-plugin https://static-ice.ng.bluemix.net/ibm-containers-linux_x64
是否按照成功:
cf plugins
cf ic namespace set xx
提示错误怎么解决卡了很久
不用管,你查一下你又没有设置过命名空间。输入:cf ic nemespace get 就可以看你的命名空间的名字。
更正:cf ic namespace get
已经有命名空间了,是在网页上创建的,但是拉取镜像时失败,提示找不到什么文件。docker pull malaohu/ssr-with-net-speeder 出错
sudo cf ic namespace set runneeyetee 老出错,FAIL。怎么破?
因为你设置过命名空间。命名空间只要有就可以,不用非得设置。输入:cf ic nemespace get 就可以看你的命名空间的名字。
输入:cf ic namespace get
大佬从这里开始不会了:环境部署
环境要求:Cloud Foundry、Bluemix 、 Docker
安装Cloud Foundry~
大佬指点一下
2017年3月6日22:16:14 更新说明:这里的操作,需要你有一台Linux服务器 推荐 Ubuntu 或者Debian 系统。
博主一直没有关注过KCP
绑卡失败,不知道是为啥?
仔细看文章说明,应该能绑定~
centos安装Cloud Foundry~
# ...first configure the Cloud Foundry Foundation package repository
$ sudo wget -O /etc/yum.repos.d/cloudfoundry-cli.repo https://packages.cloudfoundry.org/fedora/cloudfoundry-cli.repo
# ...then, install the cf CLI (which will also download and add the public key to your system)
$ sudo yum install cf-cli
centos 6 安装 Docker 貌似挺麻烦~~
前几天正在找这个