Skip to content
This repository has been archived by the owner on Oct 7, 2023. It is now read-only.

theobori/docker-v

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ‹ docker-v

A tiny CLI to import and export Docker volumes.

πŸ“– How to build and run ?

  1. Install the dependencies
    • bash>=4.0 (or at least a shell supporting bash)

⭐ Use cases

Here are some usage examples.

πŸ“₯ Export

Export a Docker volume to a directory

./docker-v \
    -v volume_name \
    -e

Export a Docker volume to a tarball

./docker-v \
    -v volume_name \
    -a output.tar.gz \
    -e

πŸ“€ Import

Import a directory to a Docker volume

./docker-v \
    -v volume_name \
    -d input_dir -i

Import a tarball (then extract) to a Docker volume

./docker-v \
    -v volume_name \
    -d dir_path \
    -a input.tar.gz \
    -i

ℹ️ Scripts informations

To get more informations about the CLI arguments, you can run ./docker-v -h.

Releases

No releases published

Packages

No packages published

Languages