I have created new docker container using run command to allow port 6400 after removing the old container in app sever2.
Then used exec command to install apache2 using apt and start apache2 service. Still it is showing failed.
I verified the lab and it works fine.
You need to update the /etc/apache2/ports.conf and /etc/apache2/sites-enabled/000-default.conf with updated ports, and that should work.