Copying files from Docker container to host

后端 未结 18 2392
小蘑菇
小蘑菇 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 13:59

    docker run -dit --rm IMAGE
    docker cp CONTAINER:SRC_PATH DEST_PATH
    

    https://docs.docker.com/engine/reference/commandline/run/ https://docs.docker.com/engine/reference/commandline/cp/

提交回复
热议问题