You are here

How to edit files in stopped/not starting docker container

Copy file out of container

docker cp docker_web_1:/etc/apache2/sites-enabled/apache2.conf  .

(correct the file)

docker cp apache.conf docker_web_1:/etc/apache2/sites-enabled/apache2.conf
code type: 
Taken from: 
https://stackoverflow.com/questions/32750748/how-to-edit-files-in-stopped-not-starting-docker-container