Copying files from Docker container to host

后端 未结 18 2389
小蘑菇
小蘑菇 2020-11-22 13:39

I\'m thinking of using Docker to build my dependencies on a Continuous Integration (CI) server, so that I don\'t have to install all the runtimes and libraries on the agents

18条回答
  •  野性不改
    2020-11-22 14:03

    I used PowerShell (Admin) with this command.

    docker cp {container id}:{container path}/error.html  C:\\error.html
    

    Example

    docker cp ff3a6608467d:/var/www/app/error.html  C:\\error.html
    

提交回复
热议问题