Skip to content

Thammachart/archive2volume

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

archive2volume

Introduction

The easy way for migrating from archive file (*.tar.gz or *.tgz) to Docker volume

How to use

  1. First pull the Docker image
$ docker pull busthehero/archive2volume
  1. Run the image against volume you want archive file to be extracted upon
$ docker run --rm \
    -v *archive file*:/tarfile/file.tgz \
    -v *volume name*:/volume \
    busthehero/archive2volume

Environment Variables

  • If you don't want Verbosity of container (originally generated from internal tar -v), you can use TAR_VERBOSE_FLAG to disable it, by defining it to any value that is not literally "true" (default is true)
$ docker run \
    ... \
    -e TAR_VERBOSE="" \
    ... \
    busthehero/archive2volume
  • You can use TAR_EXTRA_ARGUMENT to define additional arguments to internal tar (default is --overwrite)
$ docker run \
    ... \
    -e TAR_EXTRA_ARGUMENT="--skip-old-files" \
    ... \
    busthehero/archive2volume

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages