Skip to content

4.10 執行失敗 #1

@wst0310

Description

@wst0310

指令
docker image build --tag whoami .

執行過程
[+] Building 3.8s (10/10) FINISHED
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 32B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/library/ruby:3.1.2-alpine 1.9s
=> [auth] library/ruby:pull token for registry-1.docker.io 0.0s
=> [1/5] FROM docker.io/library/ruby:3.1.2-alpine@sha256:05b990dbaa3a118f96e9ddbf046f388b3c4953d5ef3d18908af96f4 0.0s
=> [internal] load build context 0.1s
=> => transferring context: 71.43kB 0.1s
=> CACHED [2/5] RUN apk add --update --no-cache build-base curl 0.0s
=> CACHED [3/5] WORKDIR /app 0.0s
=> CACHED [4/5] COPY . . 0.0s
=> ERROR [5/5] RUN gem install bundler:2.3.19 && bundle install -j4 --retry 3 && bundle clean --force && 1.7s

[5/5] RUN gem install bundler:2.3.19 && bundle install -j4 --retry 3 && bundle clean --force && find /usr/local/bundle -type f -name '.c' -delete && find /usr/local/bundle -type f -name '.o' -delete && rm -rf /usr/local/bundle/cache/*.gem:
#10 1.505 Successfully installed bundler-2.3.19
#10 1.505 1 gem installed
#10 1.679 Could not locate Gemfile


executor failed running [/bin/sh -c gem install bundler:2.3.19 && bundle install -j4 --retry 3 && bundle clean --force && find /usr/local/bundle -type f -name '.c' -delete && find /usr/local/bundle -type f -name '.o' -delete && rm -rf /usr/local/bundle/cache/*.gem]: exit code: 10

麻煩您解惑了
謝謝

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions