Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does RUN yes | mean in a docker file?

I'm not great at Docker and trying to learn a little more.

What does the RUN yes | blah blah blah mean? I found it on the web when trying to fix docker and xdebug, which I'm still not finished doing but to fix it I have to start understanding more of the underlying components of how Docker is supposed to work.

This page (frustratingly) has NO information about it: https://docs.docker.com/engine/reference/run/

enter image description here

like image 775
S.Mason Avatar asked Feb 01 '26 19:02

S.Mason


1 Answers

It's a command (has nothing to do with docker) that basically confirms any commandline questions, see the manual:

https://linuxhint.com/bash_yes_command/

like image 170
Kyborek Avatar answered Feb 03 '26 09:02

Kyborek