Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hectorqin/docker-volume-local-mapping
Docker volume plugin for local-mapping
https://github.com/hectorqin/docker-volume-local-mapping
custom-mountpoint docker docker-volume-plugin local-folder
Last synced: about 1 month ago
JSON representation
Docker volume plugin for local-mapping
- Host: GitHub
- URL: https://github.com/hectorqin/docker-volume-local-mapping
- Owner: hectorqin
- Created: 2017-11-29T09:21:18.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-11-30T08:16:28.000Z (about 7 years ago)
- Last Synced: 2024-10-29T12:13:18.317Z (3 months ago)
- Topics: custom-mountpoint, docker, docker-volume-plugin, local-folder
- Language: Go
- Size: 751 KB
- Stars: 7
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Docker volume plugin for local-mapping
This plugin allows you to map local folder to volume.
TravisCI[![TravisCI](https://travis-ci.org/hectorqin/docker-volume-local-mapping.svg)](https://travis-ci.org/hectorqin/docker-volume-local-mapping)
## Usage
1 - Install the plugin
```
$ docker plugin install hectorqin/local-mapping# or to enable debug
docker plugin install hectorqin/local-mapping DEBUG=1# or to change where plugin state is stored
docker plugin install hectorqin/local-mapping state.source=# or to change where local folder is stored
# when create volme, make sure the path is relative to the root.source, the real path is root.source + mountpoint(args)
docker plugin install hectorqin/local-mapping root.source=
```2 - Create a volume
```
$ docker volume create -d hectorqin/local-mapping -o mountpoint=/path/to/folder local-volume
local-volume
$ docker volume ls
DRIVER VOLUME NAME
local e1496dfe4fa27b39121e4383d1b16a0a7510f0de89f05b336aab3c0deb4dda0e
hectorqin/local-mapping:latest local-volume```
3 - Use the volume
```
$ docker run -it -v local-volume: busybox ls
```## example
```
docker volume create -d hectorqin/local-mapping -o mountpoint=/tmp tmp
```## LICENSE
MIT