docker DockerHub 容器    2017-04-28 16:33:23    26

有时候想要保存自己的docker镜像,又不想自己搭建docker registry,那么就可以了借用DockerHub来用,一般不会有多少人在意你的镜像,不过万一被人看上了呢,这谁说的准呢,废话不多说,下面来看看操刀记录

  1. 在DockerHub上创建账号:https://hub.docker.com/ (这里我的账号是firewarm)
  2. 本地下载镜像(这里拿alpine做示例),并为镜像打tag
  1. [root@host-30 ~]# docker pull alpine:3.4
  2. [root@host-30 ~]# docker tag alpine:3.4 firewarm/alpine:3.4
  1. 登录到DockerHub上
  1. [root@host-30 ~]# docker login
  2. # 输入用户名和密码
  1. push镜像到DockerHub上
  1. [root@host-30 ~]# docker push firewarm/alpine:3.4
  2. The push refers to a repository [docker.io/firewarm/alpine]
  3. 4fe15f8d0ae6: Pushed
  4. 3.4: digest: sha256:dc89ce8401da81f24f7ba3f0ab2914ed9013608bdba0b7e7e5d964817067dc06 size: 528

by 刘迎光@萤火虫工作室
OpenBI交流群:495266201
MicroService 微服务交流群:217722918
mail: liuyg#liuyingguang.cn
博主首页(==防止爬虫==):http://blog.liuyingguang.cn

Docker kubernetes 容器    2017-04-28 16:32:19    45

最近刚刚入手研究kubernetes,运行容器的时候,发现一直处于ContainerCreating状态,悲了个催,刚入手就遇到了点麻烦,下面来讲讲如何查找问题及解决的

运行容器命令:

  1. [root@master-149 ~]# kubectl run my-alpine --image=alpine --replicas=2 ping www.baidu.com

查看pods状态

  1. [root@master-149 ~]# kubectl get pods
  2. NAME READY STATUS RESTARTS AGE
  3. my-alpine-2150523991-knzcx 0/1 ContainerCreating 0 6m
  4. my-alpine-2150523991-lmvv5 0/1 ContainerCreating 0 6m

一直处于ContainerCreating状态,开始查找原因
执行如下命令:

  1. [root@master-149 ~]# kubectl describe pod my-alpine
  2. Name: my-alpine-2150523991-knzcx
  3. Namespace: default
  4. Node: node-150/192.168.10.150
  5. Start Time: Sat, 19 Nov 2016 18:20:52 +0800
  6. Labels: pod-template-hash=2150523991,run=my-alpine
  7. Status: Pending
  8. IP:
  9. Controllers: ReplicaSet/my-alpine-2150523991
  10. Containers:
  11. my-alpine:
  12. Container ID:
  13. Image: alpine
  14. Image ID:
  15. Port:
  16. Args:
  17. ping
  18. w
saiku3.8 saiku 二次开发 OpenBI    2017-04-28 16:26:14    268

在saiku3.8的二次开发版本中,由于运行环境的特殊性,经常会遇到一些问题,但是不是莫名其妙,而是有依据可循的,下面来看下找不到文件“configuration.xml”的解决办法:

报错信息

  1. 10:29:39,422 ERROR [RepositoryDatasourceManager] Could not start repo
  2. org.apache.jackrabbit.core.config.ConfigurationException: Configuration file could not be read.
  3. at org.apache.jackrabbit.core.config.ConfigurationParser.parseXML(ConfigurationParser.java:292)
  4. at org.apache.jackrabbit.core.config.RepositoryConfigurationParser.parseRepositoryConfig(RepositoryConfigurationParser.java:323)
  5. at org.apache.jackrabbit.core.config.RepositoryConfig.create(RepositoryConfig.java:351)
  6. at org.apache.jackrabbit.core.config.RepositoryConfig.create(RepositoryConfig.java:327)
  7. at org.apache.jackrabbit.core.config.RepositoryConfig.create(RepositoryConfig.java:277)
  8. at org.saiku.repository.JackRabbitRepositoryManager.start(JackRabbitRepositoryManager.java:169)
  9. at org.saiku.service.datasource.RepositoryDatasourceManager.l
java ws.rs restful    2017-04-28 16:21:43    364

错误信息

  1. Java.lang.AbstractMethodError: javax.ws.rs.core.UriBuilder.uri(Ljava/lang/String;)Ljavax/ws/rs/core/UriBuilder;
  2. at javax.ws.rs.core.UriBuilder.fromUri(UriBuilder.java:119)
  3. at com.sun.jersey.spi.Container.servlet.ServletContainer.service(ServletContainer.java:669)
  4. at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
  5. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
  6. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  7. at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
  8. at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
  9. at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
  10. at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
  11. at org.apache.shiro.subject.support.DelegatingSubject.execute(Delega
windows git    2017-04-28 16:19:44    11

解决办法

  1. 找到项目目录中的隐藏文件夹“.git”
  2. 找到“.git”目录下的config并编辑
  3. 其中url修改为如下模式,保存即可
  1. https://username:password@git.net/username/test.git

by 刘迎光@萤火虫工作室
OpenBI交流群:495266201
MicroService 微服务交流群:217722918
mail: liuyg#liuyingguang.cn
博主首页(==防止爬虫==):http://blog.liuyingguang.cn

35/41