title: How to edit yaml file in Dockerfile or in shell?
body: <p>In Dockerfile, I upload one configuration file from curl, which I then need to edit a little, here is an example structure:</p>
  
  <pre><code>client:
    ...
  server:
    applicationConnectors:
    - type: http
      port: 8989
      # for security reasons bind to localhost
      bindHost: localhost
    requestLog:
        appenders: []
    adminConnectors:
    - type: http
      port: 8990
      bindHost: localhost
  </code></pre>
  
  <p>I need to edit both <code>bindHost</code> parameters, it would be desirable if I could pass their values as a parameter during <code>docker build</code>, but I didn’t seem to find anything on the Internet or in the documentation.</p>