Image of httpd copy to local system found error
I want to know where is the docker image save and how we copy that image of httpd in local system?
I hope I will get my answer here!
Image of httpd copy to local system found error
I want to know where is the docker image save and how we copy that image of httpd in local system?
I hope I will get my answer here!
2
Answers
Your command
is the correct way to copy contents out of a container to the host.
The issue is that the file that you are targetting here (
/etc/httpd/conf
) does not exist in the container. Maybe you meant the folder/usr/local/apache2/conf
?You can inspect the contents of the container by shelling into it using
Or using a dummy copy of the container:
To the answer added by Chris, always check the docker hub’s httpd image page for detailed information on the config and refer to the official docker documentation on the usage of docker commands.
httpd conf copy example steps:
Click here for httpd docker image configuration.