tag:blogger.com,1999:blog-6571671819249536095.post6039864317488193268..comments2024-03-13T04:22:00.097-07:00Comments on Programster: Docker - Build Apache/PHP Image From ScratchStuarthttp://www.blogger.com/profile/00029263197782711498noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-6571671819249536095.post-66945426598714636102015-04-25T02:53:25.081-07:002015-04-25T02:53:25.081-07:00To be honest, I haven't bothered building cont...To be honest, I haven't bothered building containers through committing changes in such a long time. I highly recommend just adding curl to the docker file instead, so that when the container is built in the first place, it will have curl. E.g add the line "RUN apt-get install curl" after my "RUN apt-get update && apt-get install apache2 libapache2-mod-php5 -y" or in the dockerfile, or just add curl to that line where I'm installing packages.Stuarthttps://www.blogger.com/profile/00029263197782711498noreply@blogger.comtag:blogger.com,1999:blog-6571671819249536095.post-51671568703504611692015-04-24T08:14:54.687-07:002015-04-24T08:14:54.687-07:00Question for you. The image worked really good and...Question for you. The image worked really good and I was able to run a server. I wanted to install some libraries though. So I ran the image as /bin/bash so i could run "apt-get install curl". Then i committed the container. now when i try to run the new image as a server process again it won't work. do you have any idea what I'm doing wrong?<br /><br />Thanks!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6571671819249536095.post-13986348746331969592014-11-03T10:41:35.893-08:002014-11-03T10:41:35.893-08:00Thanks for pointing that out! I have updated the b...Thanks for pointing that out! I have updated the blog accordingly.Stuarthttps://www.blogger.com/profile/00029263197782711498noreply@blogger.comtag:blogger.com,1999:blog-6571671819249536095.post-16050651164962240432014-11-02T13:12:19.160-08:002014-11-02T13:12:19.160-08:00cat -f ' new_folder/sub_folder/index.php
sho...cat -f ' new_folder/sub_folder/index.php<br /><br />should be<br /><br />echo ' my_website/public_html/index.php Anonymoushttps://www.blogger.com/profile/09185315492341161971noreply@blogger.com