I am running elasticsearch from within a docker container.
While configuring elasticsearch for ssl and shield my elasticsearch.yml file got illegal entry i
elasticsearch.yml
You can copy files out and then back into a container (even when the container is stopped) with the docker cp $cont_name:/path/in/container /path/on/host to copy out and then docker cp /path/on/host $cont_name:/path/in/container.
docker cp $cont_name:/path/in/container /path/on/host
docker cp /path/on/host $cont_name:/path/in/container