小编Kam*_*cki的帖子

Heroku码头工人部署

我正在关注这篇文章https://devcenter.heroku.com/articles/container-registry-and-runtime并且我坚持使用"heroku container:push".我运行"heroku容器:push --app mediabox"并正确构建docker镜像,然后开始将其推送到注册表,这就是我得到的:

Successfully built 7926b98d51b5
The push refers to a repository [registry.heroku.com/mediabox/web]
38d48dd6de30: Preparing 
969058e6ddc9: Preparing 
2f454953e0e7: Preparing 
f67c1ecd32a1: Preparing 
44fade3982ca: Preparing 
0accb1c81980: Waiting 
e79bbdfaa0d3: Waiting 
1be5d1797b73: Waiting 
5c0a4f4b3a35: Waiting 
011b303988d2: Waiting 
error parsing HTTP 400 response body: unexpected end of JSON input: ""
 !    Error: docker push exited with 1
Run Code Online (Sandbox Code Playgroud)

这是我的Dockerfile:

FROM ruby:2.3.1-alpine

RUN apk --update --no-cache add build-base less libxml2-dev libxslt-dev nodejs postgresql-dev && mkdir -p /app

WORKDIR /app

COPY Gemfile Gemfile.lock ./

RUN …
Run Code Online (Sandbox Code Playgroud)

ruby-on-rails heroku docker

6
推荐指数
2
解决办法
2358
查看次数

标签 统计

docker ×1

heroku ×1

ruby-on-rails ×1