Docker Instructions

This section describes how to build a Docker container for the MFT Server application to run in.

 

Prerequisites

 

A Windows or Linux MFT Server installer

A Docker installation that you are logged in to

 

Instructions for Windows Installation

 

Create a folder on the target system, for example: "C:\docker".

 

Copy all the files from “MFT Server Installation directory\doc\docker” to “C:\docker”. Note: The default MFT Server installation location is Program Files\MFT Server.

 

Note: Docker builds images by reading the instructions from a Dockerfile. This is a text file containing instructions that adhere to a specific format needed to assemble your application into a container image. The default file name is Dockerfile, without a file extension. Using the default name allows you to run the docker build command without having to specify additional command flags.

 

Place the Windows installer in “C:\docker”.

 

Place the license file in “C:\docker”.

 

Open a Command Prompt or PowerShell window and navigate to the in “C:\docker” directory where the docker files were placed. Build the container image using the docker build command:

 

docker build -t jscape:latest .

 

Start your container using the docker run command and specify the name of the image you just created:

 

docker run -it -p 11880:11880 --entrypoint=cmd jscape:latest

 

Note: Windows requires the host OS version to match the container OS version. If you want to run a container based on a newer Windows build, make sure you have an equivalent host build. Otherwise, you can use Hyper-V isolation to run older containers on new host builds.

 

Instructions for Non-Windows Installation

 

Unpack mft-server files (/home/user/mft_server).

 

Navigate to the /home/user/mft_server/doc/docker directory. Copy all the files in this directory to the /home/user directory.

 

Note: Docker builds images by reading the instructions from a Dockerfile. This is a text file containing instructions that adhere to a specific format needed to assemble your application into a container image. The default file name is Dockerfile, without a file extension. Using the default name allows you to run the docker build command without having to specify additional command flags.

 

Place the license file in the /home/user directory. Open a terminal and go to the /home/user directory where the docker files were placed. Build the container image using the docker build command:

 

docker build -t jscape:latest .

 

Note: The -t jscape:latest option specifies the name (required) and tag (optional) of the image you are building. The dot "." specifies the build context as the current directory. In this example, this is where the build expects to find the Dockerfile and the local files the Dockerfile needs to access.

 

Start your container using the docker run command and specify the name of the image you just created

 

docker run -it -p 11880:11880 jscape:latest