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
You can just trace the IP address of your local machine using
ifconfig
Then just enter into your Docker container and type
scp user_name@ip_address:/path_to_the_file destination
In any case if you don't have an SSH client and server installed, just install it using:
sudo apt-get install openssh-server