How to Copy file to stopped docker container

前端 未结 4 2089
孤独总比滥情好
孤独总比滥情好 2021-02-18 21:04

I am running elasticsearch from within a docker container.

While configuring elasticsearch for ssl and shield my elasticsearch.yml file got illegal entry i

4条回答
  •  北海茫月
    2021-02-18 21:25

    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.

提交回复
热议问题