小编som*_*ame的帖子

docker build 给出空间不足的错误

docker build突然出现这个错误...

我们尝试了一些方法,但都没有使错误消失:

  1. docker登录到不同的注册表

  2. docker rmi, docker rm

  3. 其他人在他们的本地机器上进行 docker 构建。

日志:

One of the configured repositories failed (Unknown),
 and yum doesn't have enough cached data to continue. At this point the only
 safe thing yum can do is fail. There are a few ways to work "fix" this:
     1. Contact the upstream for the repository and get them to fix the problem.
     2. Reconfigure the baseurl/etc. for the repository, to point to a working
        upstream. This is most …
Run Code Online (Sandbox Code Playgroud)

yum docker docker-registry

2
推荐指数
1
解决办法
2480
查看次数

Pub/Sub 推送消息没有 messageId 属性

这可能会导致 Cloud Pub/Sub 服务出现问题。但到目前为止,GCP 支持并没有真正帮助,所以我在这里发布这个问题。

根据here,Pubsub消息应该有一个messageId属性,无论是来自pull还是push。

所以我试图看看消息是什么样的:(这里的事件是推送到云函数的 pubsub 消息)

exports.my_cloud_function = (event) => {
    logger.debug(`Event: ${util.inspect(event)}`);
}
Run Code Online (Sandbox Code Playgroud)

我所期望的:

{ '@type': 'type.googleapis.com/google.pubsub.v1.PubsubMessage', messageId:'111111111', publishTime: 'Oct 1st 2019, xxxx', attributes: { key1: 'value1', key2: 'value2' }, data: 'eLCJ=(some base 64)' }
Run Code Online (Sandbox Code Playgroud)

实际上是什么:

{ '@type': 'type.googleapis.com/google.pubsub.v1.PubsubMessage', attributes: { key1: 'value1', key2: 'value2' }, data: 'eLCJ=(some base 64)' }
Run Code Online (Sandbox Code Playgroud)

node.js google-cloud-platform google-cloud-pubsub

1
推荐指数
1
解决办法
894
查看次数