How to push a file into a docker container
Let's see how to push a file into the container from the host.
We are assuming the test.html file is the file we are going to copy into the docker container.
web-application is container
docker cp test.html web-application:/folderpath
we can verify after log in to the container.
docker exec -it web-application bash
And then check in the folder path and you will see the file there copied
Sources :
https://www.linkedin.com/events/kubernetes-freetechnicalworksho6807993779836985344/
Comments
Post a Comment