docker-library / ruby

Docker Official Image packaging for Ruby
http://www.ruby-lang.org/
BSD 2-Clause "Simplified" License
590 stars 334 forks source link

Ruby multistage build is failing #408

Closed anoopkrrish07 closed 1 year ago

anoopkrrish07 commented 1 year ago

using stage1: ruby:2.7.7 base image for ruby application and stage 2 is also using the same image.(ruby:2.7.7)

FROM ruby:2.7.7

And getting this error: root@bbd7925ec418:/# docker-compose up --build

Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "irb": executable file not found in $PATH: unknown

Output from the cointainer: root@bbd7925ec418:/# which ruby /usr/local/bin/ruby

root@bbd7925ec418:/# ruby -v ruby 2.7.7p221 (2022-11-24 revision 168ec2b1e5) [x86_64-linux]

root@bbd7925ec418:/# which irb /usr/local/bin/irb

root@bbd7925ec418:/# irb --version irb 1.2.6 (2020-09-14)

Only postgress and redis containers are running, the app container is exiting.. Can someone help me to fix this issue?

tianon commented 1 year ago

Unfortunately, we do not have the bandwidth to provide in-depth integration/deployment/environment debugging or support here; these sorts of questions/requests would be more appropriately posted to a dedicated support forum, such as the Docker Community Slack, Server Fault, Unix & Linux, or Stack Overflow.