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 in Docker by Marcus
• 130 points
64 views

1 answer to this question.

+1 vote
Try using relative paths. Recently, even I have been facing the same error while using the absolute path.
answered Nov 14 by Eric

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,810 points
44 views
0 votes
1 answer
0 votes
1 answer
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
• 6,890 points
60 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,510 points
87 views
0 votes
1 answer

Isolate PHP applications with Docker

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

answered Jul 6, 2018 in Docker by Atul
• 10,240 points
72 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
291 views