How to copy files from host to Docker container

0 votes
I'm attempting to create a backup and restore solution for our Docker containers.

I have a Docker base image called ubuntu:base that I built and don't want to have to rebuild it every time I add files to it with a Docker file.

I'd like to write a script that starts on the host system, creates a new container using the ubuntu:base Docker image, and then moves files into it.

What is the best way for me to copy files from the host to the container?
Apr 29, 2022 in Docker by Abhijeet
• 180 points

edited 4 days ago 5 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP