Closed zhaozhiming closed 9 years ago
There are various options:
docker cp c8476689cc67:/opt/solr-5.2.1/server/solr/solr.xml .
then docker exec -i c8476689cc67 dd of=/opt/solr-5.2.1/server/solr/solr.xml < solr.xml
. That last one is a bit ugly; see https://github.com/docker/docker/issues/5846 for a feature request to make that nicer.docker exec
into the container and edit the file with cat
and copy/paste, or for some kinds of edits use sed -i
Out of interest, what specific changes are you considering?
hi, I want to change the configuration of solr, but the image don't have vim, and can't use sudo to install software, how to change config? Please help, thanks.