R
R
RabIN2019-06-01 22:00:37
Apache HTTP Server
RabIN, 2019-06-01 22:00:37

How to set up configuration files in a docker container (like Apache, for example)?

How to set up configuration files in a docker container (like Apache, for example)?
If I have the zendframework_web image loaded and the database installed, then the paths to the database and the Apache configuration should appear ...
But for some reason the command does not show it to me:
docker run -h zendframework_web -it ubuntu bash
I go into the image itself, and I don’t see the /etc/apache2 directory ... for some reason?
similarly, /var/lib/mysql ....
although adminer opens on port 127.0.0.1:6080/....

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
TheRonCronix, 2019-06-01
@TheRonCronix

Look at the volume connection (the -v argument seems to be when running the docker run command). Otherwise, your data will be deleted upon completion of the container.
And the path in the image to the application may differ from the standard one you are used to.

R
RabIN, 2019-06-01
@RabIN

docker ps
 docker exec -it ID_CONTAINER sh

Who will come in handy, killed a lot of time ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question