Starting a Default FTL Server in a Docker Container
To start an FTL server in a Docker container, complete this task.
Docker must already be installed on the host computer, and an FTL server Docker image must already be built.
- Procedure
-
Run the
build_imagesscript provided in samples/docker. - Start the FTL server container.
Publish the FTL server port using Docker's -p parameter. This example uses the default port, 8585.
This example command line omits an FTL server configuration file, so the server uses a default configuration. Instead of specifying the server's host and port in the configuration file, supply an extended name as the argument to the FTL server's --name parameter. The extended name string specifies the server name, host, and port.
docker run -p 8585:8585 ftl-tibftlserver:7.0.1 --name <srvr_name>@<host>:8585
Three Default FTL Servers
To start three default FTL servers in Docker containers, use the command line variant in this example.
docker run -p 8585:8585
ftl-tibftlserver:7.0.1
-n <svr_name>@host1:8585
--core.servers svr1@host1:8585|svr2@host2:8585|svr3@host3:8585
Run the appropriate command on each of the three hosts you specify in the --core.servers argument.
For reference, see FTL Server Executable.