Forum Navigation
You need to log in to create posts and topics.

Docker edit file on a not starting/stopped container

Problem

Manual configuration on a docker container and restarting has prevent the container from running

Solution 

Copy your file from the container to your local machine

docker ps -a

docker cp ecc23959035e:/etc/my.cnf  .

Fix your settings and copy the file back to the container and start it

docker cp ./my.cnf ecc23959035e:/etc/my.cnf

docker start ecc23959035e

 

If you have found my website, guides, articles or videos useful, please buy me a coffee