An open API service indexing awesome lists of open source software.

https://github.com/theobori/docker-v

🐋 Docker volume manager
https://github.com/theobori/docker-v

Last synced: 1 day ago
JSON representation

🐋 Docker volume manager

Awesome Lists containing this project

README

        

# 🐋 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

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

Export a Docker volume to a tarball

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

### 📤 Import

Import a directory to a Docker volume

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

Import a tarball (then extract) to a Docker volume

```bash
./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`.