Create tarball in the container:
docker exec -it devmajn-docker-db-1 tar cvf ./omega.tar /var/lib/mysql
Copy from container to local machine:
docker cp devmajn-docker-db-1:/omega.tar .
Create tarball in the container:
docker exec -it devmajn-docker-db-1 tar cvf ./omega.tar /var/lib/mysql
Copy from container to local machine:
docker cp devmajn-docker-db-1:/omega.tar .
Tags: