Is there a way to copy file from docker container to the host by running the command on the container itself? I know that I can use "volume" but it will not work - I want to copy files from container to arbitrary places on the host. Only SCP file vis SSH?
            Asked
            
        
        
            Active
            
        
            Viewed 2,288 times
        
    1 Answers
0
            
            
        From: Copying files from Docker container to host you can run:
docker cp <containerId>:/file/path/within/container /host/path/target
 
    
    
        Nic
        
- 327
- 1
- 18
