Getting and running mdtmFTP in Docker

Requirements

System must have installed Docker, version 1.10 or higher. Get and install Docker from the project website at http://www.docker.com. Alternately, you may want to install Docker packages from your distribution’s package repository.

Get mdtmFTP Docker image

Download and install mdtmFTP Docker package either from the main repositry at Fermilab or from Docker Hub.

  1. Fermilab repository

The mdtmFTP repository is at https://publicregistry.fnal.gov/. To access it, download the CA ceritifcate from https://bigdataexpress.fnal.gov/download/ca.crt.

The certificate has to be put in the appropriate path. For example, in Linux,

$ sudo mkdir -p /etc/docker/certs.d/publicregistry.fnal.gov
$ sudo cp ca.crt /etc/docker/certs.d/publicregistry.fnal.gov/

Then pull the image by running:

$ docker pull publicregistry.fnal.gov/bigdata_express/mdtmftp:1.1.1-xenial
  1. Docker hub

The mdtmFTP repository is at https://hub.docker.com/r/wenji/mdtm, and you can pull the image by running:

$ docker pull docker.io/wenji/mdtm:1.1.1-xenial

Run docker images to check the container that you have pulled.

Run mdtmFTP in Docker container

Start a mdtmFTP docker container by running:

$ docker run --rm publicregistry.fnal.gov/bigdata_express/mdtmftp:1.1.1-xenial

This command will start the mdtmFTP container that shows information on the server configurations and server verion number.

libmdtm: mdtm_config generates /tmp/myserver.conf.
blocksize 4194304
direct 0
splice 0
monitor 0
mdtm_monitor_path /home/liangz/mdtm-test/data
libmdtm: mdtmconfig load mdtmconfig.json : succeed.
mdtmftp-ftp-server: 1.1.1

You can also login the container to launch applications or edit configuration files.

$ docker run -ti --rm publicregistry.fnal.gov/bigdata_express/mdtmftp:1.1.1-xenial /bin/bash

We will explain how to run mdtm server and client using container images in the following sections.