gabi PRO said about 2 years ago on Ruby on Docker :
Hi,

I'm hitting this error when following along and runningĀ  docker-compose up with all the files looking just like in the video


=> ERROR [ 5/13] RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -                                                                         0.6s
------
 > [ 5/13] RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -:
#9 0.285 Warning: apt-key output should not be parsed (stdout is not a terminal)
#9 0.543 gpg: no valid OpenPGP data found.
#9 0.543 Segmentation fault
------
failed to solve: rpc error: code = Unknown desc = executor failed running [/bin/sh -c curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -]: exit code: 2


What could be a possible solution? I'm in an Apple M1 Pro runningĀ  Monterey, if that is relevant. Also, I'm trying to use Rails 6.1.4.6 instead of the latest stable version.

Thanks in advance for any help!