Copy a file in a Docker container to your local host machine

preview_player
Показать описание
Here's a quick tutorial on how to copy a file from inside Docker to your host machine. This little trick can really come in handy, especially if you want to customize an existing Docker container. You just copy a file in a Docker container to the local filesystem of your host, customize it, and then put it back into the Docker container. Create a snapshot image, or maybe build from a Dockerfile, and you've not got a custom Docker image, all of which originated with the file copied from inside Docker to your host machine.

It's super easy!
Рекомендации по теме
Комментарии
Автор

Makes copying a file from a docker container to the host look so easy.

ivanphone
Автор

Коп рахмет!!! Пол дня чухался чухался, иглавное нигде в их инструкции ни слова об этом нет. А ведь надо было проверить. Thanks a lot!!!

yaroslavsolntsev
Автор

Hello. Can you do the same actions using dive and docker save?

ValentinStupa
Автор

Hi,

Can you please make a video & explain how to write an ansible playbook in a very simple way? It's a bit confusing regarding spaces & hyphens. I think it's called indentation. In terraform as well its used spaces and curly brackets etc

I am not from a programming or DevOps background so find it confusing where & when these things should be applied in both the tools. Also Variables. Kindly if possible please explain it in simple terms as if you are explaining it to someone who does not have any knowledge about it.

Please it's a request. Kindly reply

vinvvinv
Автор

thanks, amazing tutorial please, can access text file on the host from the docker container?

tomahocbc