GithubHelp home page GithubHelp logo

esanchezm / docker-volume-ftp-driver Goto Github PK

View Code? Open in Web Editor NEW

This project forked from t1d333/docker-volume-ftp-driver

0.0 1.0 0.0 3.91 MB

Docker volume plugin for ftp

Go 97.92% Makefile 1.24% Dockerfile 0.84%

docker-volume-ftp-driver's Introduction

Docker volume plugin for ftp

Coverage Go Report Card

This plugin allows you to mount remotes directories from ftp server

Usage

Install plugin

$ docker plugin install t1d333/ftp-driver:latest

or using GitHub

# clone repository
$ git clone https://github.com/t1d333/docker-volume-ftp-driver.github

$ cd docker-volume-ftp-driver

# build plugin
$ make

# enable plugin
$ make enable

Create a volume

Options

  • host - host name or IP address of the ftp server
  • user - username for authentication
  • password - password for authentication
  • port - port for connection
  • remotepath - path on ftp server for mount. The path must be absolute and start with a /

The source path on the ftp server must exist, otherwise an error will occur when creating the volume.

All options except remotepath are required

$ docker volume create -d t1d333/ftp-driver \
	-o host=<hostname or ip address> \
	-o user=<username> \
	-o password=<password> \
	-o port=<port> [-o remotepath=<remotepath>] \
	--name ftpvolume

$ docker volume ls
DRIVER                     VOLUME NAME
local                      e83cd4dda625e94150533511447050b3d7b29f194e37777cf0c3d8b547696b45
local                      ea4cfbe0c50202f1616b555c6e3d2087563b102ae02092102a00470bed8dc921
local                      ea8ebc180669eeca9b238b84d3a72a13b36bce00c68cf3d2caf6ae15415cfe30
local                      eda644e6c01842da1a59e746b774804016417129a05d210f99f54a0008f3d4eb
t1d333/ftp-driver:latest   ftpvolume

Use the volume

$ docker run -it -v ftpvolume:<path> debian ls <path>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.