docker/entrypoints/rails.sh: no such file or directory #8321
Replies: 5 comments
-
same here! |
Beta Was this translation helpful? Give feedback.
-
It is still the issue |
Beta Was this translation helpful? Give feedback.
-
same issue for me |
Beta Was this translation helpful? Give feedback.
-
this worked for me: https://stackoverflow.com/questions/38905135/why-wont-my-docker-entrypoint-sh-execute
For repo owners and contributors
|
Beta Was this translation helpful? Give feedback.
-
我使用的docker安装,在compose文件里修改了./app:/app这个映射路径后出现了这个问题。重新修改路径后解决了这个问题,好像不能直接修改为映射根目录,希望能帮助到大家 |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
[+] Running 2/2
[+] Running 2/2
[+] Running 0/1
[+] Building 2474.4s (24/25)
=> [internal] load build definition from Dockerfile 0.1s
=> => transferring dockerfile: 3.26kB 0.0s
=> [internal] load .dockerignore 0.1s
=> => transferring context: 239B 0.0s
=> [internal] load metadata for docker.io/library/ruby:3.2.2-alpine3.18 2474.2s
=> [internal] load build context 4.0s
=> => transferring context: 239.08MB 4.0s
=> CACHED [stage-1 1/7] FROM docker.io/library/ruby:3.2.2-alpine3.18@sha256:198e97ccb12cd0297c274d10e504138f412f90bed50c36ebde0a466ab89cf526 0.0s
=> [pre-builder 2/14] RUN apk update && apk add --no-cache openssl tar build-base tzdata postgresql-dev postgresql-client nodejs-current yarn git && mkdir -p /var/app && gem install bundler 26.3s
=> [stage-1 2/7] RUN apk update && apk add --no-cache build-base openssl tzdata postgresql-client imagemagick git vips && gem install bundler 25.8s
=> [stage-1 3/7] RUN if [ "production" != "production" ]; then apk add --no-cache nodejs yarn; fi 0.9s
=> [pre-builder 3/14] WORKDIR /app 0.1s
=> [pre-builder 4/14] COPY Gemfile Gemfile.lock ./ 0.1s
=> [pre-builder 5/14] RUN apk update && apk add --no-cache build-base musl ruby-full ruby-dev gcc make musl-dev openssl openssl-dev g++ linux-headers xz vips 5.9s
=> [pre-builder 6/14] RUN bundle config set --local force_ruby_platform true 0.8s
=> [pre-builder 7/14] RUN if [ "production" = "production" ]; then bundle config set without 'development test'; bundle install -j 4 -r 3; else bundle install -j 4 -r 3; fi 933.1s
=> [pre-builder 8/14] COPY package.json yarn.lock ./ 0.1s
=> [pre-builder 9/14] RUN yarn install 850.2s
=> [pre-builder 10/14] COPY . /app 1.7s
=> [pre-builder 11/14] RUN mkdir -p /app/log 0.6s
=> [pre-builder 12/14] RUN if [ "production" = "production" ]; then SECRET_KEY_BASE=precompile_placeholder RAILS_LOG_TO_STDOUT=enabled bundle exec rake assets:precompile && rm -rf spec node_modules tmp/cache; fi 594.8s
=> [pre-builder 13/14] RUN git rev-parse HEAD > /app/.git_sha 0.7s
=> [pre-builder 14/14] RUN rm -rf /gems/ruby/3.2.0/cache/.gem && find /gems/ruby/3.2.0/gems/ ( -name ".c" -o -name "*.o" ) -delete && rm -rf .git && rm .gitignore 1.8s
=> [stage-1 4/7] COPY --from=pre-builder /gems/ /gems/ 12.4s
=> [stage-1 5/7] COPY --from=pre-builder /app /app 3.2s
=> [stage-1 6/7] COPY --from=pre-builder /app/.git_sha /app/.git_sha 0.1s
=> [stage-1 7/7] WORKDIR /app 0.1s
=> exporting to image 8.1s
=> => exporting layers 8.0s
=> => writing image sha256:f31826b02348c74d1467ed36b2587e6a43191d0764f1f4dcf4da77eff90a3482 0.0s
=> => naming to docker.io/library/chatwoot:latest 0.0s
Use 'docker scan' to run Snyk tests against images to find vulnerabilities and learn how to fix them
exec docker/entrypoints/rails.sh: no such file or directory
To Reproduce
D:\ChatWoot>docker compose run --rm rails bundle exec rails db:chatwoot_prepare
[+] Running 2/2
[+] Running 2/2
[+] Running 0/1
[+] Building 2474.4s (24/25)
=> [internal] load build definition from Dockerfile 0.1s
=> => transferring dockerfile: 3.26kB 0.0s
=> [internal] load .dockerignore 0.1s
=> => transferring context: 239B 0.0s
=> [internal] load metadata for docker.io/library/ruby:3.2.2-alpine3.18 2474.2s
=> [internal] load build context 4.0s
=> => transferring context: 239.08MB 4.0s
=> CACHED [stage-1 1/7] FROM docker.io/library/ruby:3.2.2-alpine3.18@sha256:198e97ccb12cd0297c274d10e504138f412f90bed50c36ebde0a466ab89cf526 0.0s
=> [pre-builder 2/14] RUN apk update && apk add --no-cache openssl tar build-base tzdata postgresql-dev postgresql-client nodejs-current yarn git && mkdir -p /var/app && gem install bundler 26.3s
=> [stage-1 2/7] RUN apk update && apk add --no-cache build-base openssl tzdata postgresql-client imagemagick git vips && gem install bundler 25.8s
=> [stage-1 3/7] RUN if [ "production" != "production" ]; then apk add --no-cache nodejs yarn; fi 0.9s
=> [pre-builder 3/14] WORKDIR /app 0.1s
=> [pre-builder 4/14] COPY Gemfile Gemfile.lock ./ 0.1s
=> [pre-builder 5/14] RUN apk update && apk add --no-cache build-base musl ruby-full ruby-dev gcc make musl-dev openssl openssl-dev g++ linux-headers xz vips 5.9s
=> [pre-builder 6/14] RUN bundle config set --local force_ruby_platform true 0.8s
=> [pre-builder 7/14] RUN if [ "production" = "production" ]; then bundle config set without 'development test'; bundle install -j 4 -r 3; else bundle install -j 4 -r 3; fi 933.1s
=> [pre-builder 8/14] COPY package.json yarn.lock ./ 0.1s
=> [pre-builder 9/14] RUN yarn install 850.2s
=> [pre-builder 10/14] COPY . /app 1.7s
=> [pre-builder 11/14] RUN mkdir -p /app/log 0.6s
=> [pre-builder 12/14] RUN if [ "production" = "production" ]; then SECRET_KEY_BASE=precompile_placeholder RAILS_LOG_TO_STDOUT=enabled bundle exec rake assets:precompile && rm -rf spec node_modules tmp/cache; fi 594.8s
=> [pre-builder 13/14] RUN git rev-parse HEAD > /app/.git_sha 0.7s
=> [pre-builder 14/14] RUN rm -rf /gems/ruby/3.2.0/cache/.gem && find /gems/ruby/3.2.0/gems/ ( -name ".c" -o -name "*.o" ) -delete && rm -rf .git && rm .gitignore 1.8s
=> [stage-1 4/7] COPY --from=pre-builder /gems/ /gems/ 12.4s
=> [stage-1 5/7] COPY --from=pre-builder /app /app 3.2s
=> [stage-1 6/7] COPY --from=pre-builder /app/.git_sha /app/.git_sha 0.1s
=> [stage-1 7/7] WORKDIR /app 0.1s
=> exporting to image 8.1s
=> => exporting layers 8.0s
=> => writing image sha256:f31826b02348c74d1467ed36b2587e6a43191d0764f1f4dcf4da77eff90a3482 0.0s
=> => naming to docker.io/library/chatwoot:latest 0.0s
Use 'docker scan' to run Snyk tests against images to find vulnerabilities and learn how to fix them
exec docker/entrypoints/rails.sh: no such file or directory
Expected behavior
No response
Environment
Docker
Cloud Provider
Other [please specify in the description]
Platform
None
Operating system
Windows 10
Browser and version
No response
Docker (if applicable)
No response
Additional context
x
Beta Was this translation helpful? Give feedback.
All reactions