Devops certification project Dockerfile and PHP website

+1 vote
I have followed the instructions for the Final DevOps project in regards to the Certification project. However, I am stuck on the the following step: Use the image devopsedu/webapp and add your PHP website to it using a Dockerfile

FROM devopsedu/webapp
ADD proj /var/www/html
RUN rm /var/www/html/index.html
CMD apachectl -D FOREGROUND

I have created the Dockerfile as suggested from the various topics on the site and I still get errors

root@devops-project:/home/images# docker build -t myimage:latest .
Sending build context to Docker daemon  2.048kB
Step 1/4 : FROM devopsedu/webapp
 ---> 0ef91240e173
Step 2/4 : ADD proj /var/www/html
ADD failed: stat /var/lib/docker/tmp/docker-builder832271093/proj: no such file or directory

I have connected the git repository and fetched the changes to my server and still unable to connect. I do not know how to proceed. When I check the /var/www/html directory it states that this directory does not exist.
Nov 10, 2019 in Docker by Marcus
• 130 points
3,345 views

1 answer to this question.

+2 votes

Try using relative paths. Recently, even I have been facing the same error while using the absolute path.

Discover Our DevOps Engineer Course Duration - Learn More and Plan Your Journey Today!

answered Nov 14, 2019 by Eric
This worked for me.  Thanks.
Hi Charles! I am glad to help. Please upvote the answer if it has helped you!

Thank you!

Related Questions In Docker

0 votes
1 answer

IBM Cloud:Cannot filter work items in DevOps Track and Plan in

When you search with the # the ...READ MORE

answered Aug 21, 2018 in Docker by DareDev
• 6,890 points
609 views
0 votes
1 answer
0 votes
1 answer

Dockerfile to install apache server and start httpd service on it.

Hey @Kali, That's pretty simple. You could have ...READ MORE

answered Jan 22, 2019 in Docker by Yesha
23,387 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Is Dockerfile versioning a best practice?

According to me , it will be ...READ MORE

answered Jun 17, 2018 in Docker by shubham
• 7,340 points
930 views
0 votes
1 answer

Different file owner inside Docker container and in host machine Ask

Filesystems, at least in Unix- and Linux-like ...READ MORE

answered Jun 25, 2018 in Docker by Damon Salvatore
• 5,980 points
963 views
0 votes
1 answer

Different file owner inside Docker container and in host machine

Here is what you can try. Since ...READ MORE

answered Jun 27, 2018 in Docker by Atul
• 10,240 points
1,955 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP