I am trying to build a backup and restore solution for the Docker containers that we work with.
I have Docker base image that I have created, ubuntu:base
ubuntu:base
The solution is given below,
root@123abc:/root# <-- get the container ID
cp thefile.txt /var/lib/docker/devicemapper/mnt/123abc/rootfs/root
The file shall be directly copied to the location where the container sits on the filesystem.