Home > other >  Cannot access docker container due to wrong configuration
Cannot access docker container due to wrong configuration

Time:01-03

I have a docker container that runs apache2, due to some modification in apache2 sites-enables-SSL file, I entered the wrong certificate name in the .conf file and this prevents me to access the container anymore.

Is there any way to undo my changes to be able to access the container again?

CodePudding user response:

I have solved the issue, by

  1. sudo docker cp f0a862502b7a:/etc/apache2/sites-available /opt/
  2. vi /opt/sites-available/default-ssl.conf and undo the changes and save
  3. sudo docker cp /opt/sites-available/default-ssl.conf f0a862502b7a:/etc/apache2/sites-available
  4. restart the container and it works
  • Related