Back

Explore Courses Blog Tutorials Interview Questions
+1 vote
2 views
in DevOps and Agile by (29.3k points)

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 themselves.

To achieve this I would need to copy the build artifacts that are built inside the container back into the host. Is this possible?

1 Answer

0 votes
by (50.2k points)

For copying a file from the container you could use:

docker cp <containerId>:/file/path/within/container /host/path/target

Example:

sudo docker cp goofy_roentgen:/out_read.jpg .

And you can check the image using

sudo docker ps

Browse Categories

...