My webMethods Server 10.11 | My webMethods Server Webhelp | Administering My webMethods Server | Startup and Configuration | Using My webMethods Server with Docker | Creating and Customizing Docker Images for My webMethods Server Installations | Building a Docker Image from a My webMethods Server Installation
 
Building a Docker Image from a My webMethods Server Installation
The mws-docker.sh script provides additional command-line tooling for using the docker build command to create an image for a single-instance installation of My webMethods Server from a provided Dockerfile.
*To build a Docker image for My webMethods Server
1. Go to the Software AG_directory /MWS/tools/docker/bin directory of your My webMethods Server installation.
2. Run mws-docker.sh build, and customize the image generation by specifying one or more of the following parameters:
Parameter
Description
-Duse.dockerignore
Optional. Boolean. Specifies whether to use a .dockerignore file. The default is true.
-Dfile.path
Optional. The file path of the Dockerfile to use for the build. Specify a full path, or a file name only. The default values are: Software AG_directory /MWS/tools/docker/scripts/file.path if you specify only a file name, and Software AG_directory /MWS/tools/docker/scripts/Dockerfile_MWS if not specified.
-Dimage.name
Optional. A name for the generated My webMethods Server image. The default is mws-image.
-Dserver
Optional. URL to the Docker registry. If not specified, the script uses the local Docker registry.
-Duser
Optional. The user name of the user to authenticate to the Docker registry. Required when -Dserver is specified and the registry requires authentication.
-Dpassword
Optional. The password of the user to log on to the Docker registry. Required when -Dserver is specified and the registry requires authentication. Specify a plain text password or the full path to a text file that contains the password, for example -Dpassword=file://full_file_path.