title: How to Copy file to stopped docker container
body: <p>I am running elasticsearch from within a docker container. </p>
  
  <p>While configuring elasticsearch for ssl and shield my <code>elasticsearch.yml</code> file got illegal entry i.e. <code>TAB</code> instead of a <code>space</code>.<br>
  Now my docker container is not starting up and giving the following error:</p>
  
  <pre><code>{1.4.4}: Setup Failed ...
  - SettingsException[Failed to load settings from [file:/elasticsearch/config/elasticsearch.yml]]
           IOException[Tabs are illegal in YAML.  Did you mean to use whitespace character instead?]
   org.elasticsearch.common.settings.SettingsException: Failed to load
   settings from [file:/elasticsearch/config/elasticsearch.yml]
           at org.elasticsearch.common.settings.ImmutableSettings$Builder.loadFromStream(ImmutableSettings.java:947)
           at org.elasticsearch.common.settings.ImmutableSettings$Builder.loadFromUrl(ImmutableSettings.java:931)
           at org.elasticsearch.node.internal.InternalSettingsPreparer.prepareSettings(InternalSettingsPreparer.java:77)
           at org.elasticsearch.bootstrap.Bootstrap.initialSettings(Bootstrap.java:106)
           at org.elasticsearch.bootstrap.Bootstrap.main(Bootstrap.java:177)
           at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:32)
   Caused by: java.io.IOException: Tabs are illegal in YAML.  Did you
   mean to use whitespace character instead?
           at org.elasticsearch.common.settings.loader.YamlSettingsLoader.load(YamlSettingsLoader.java:44)
           at org.elasticsearch.common.settings.ImmutableSettings$Builder.loadFromStream(ImmutableSettings.java:944)
           ... 5 more
  </code></pre>
  
  <p>How can I edit <code>elasticsearch.yml</code> or replace it without loosing data or replace the <code>elasticsearch.yml</code> file in my existing container?</p>