Description
Copy files/folders between a container and the local filesystem
#docker volume create ovitest
[root@ip-172-…-158 volumes]# docker volume ls | grep ovitest
local ovitest
Start a container with local volum attached
#docker run -d -it –name ovicontainer2 –mount source=ovitest,target=/app alpine:latest
#docker exec -it ovicontainer2 ash
From host create a file a copy to docker
[root@ip-172-…-158 tmp]# vi ovi.txt
[root@ip-172-…-158 tmp]# docker cp ovi.txt ovicontainer2:/app/