To build an image for deployment

Note: This topic only applies to using native COBOL applications in containers. To use .NET COBOL applications in containers you need to use the functionality described in Debugging and Running .NET COBOL Applications in Containers.

Once you have finished debugging your application and are sure it is performing as required you are ready build the application into an image that you can then deploy.

  1. In Solution Explorer, right-click the project's Dockerfile and click Build COBOL Docker Image.

    Docker builds a new image based on the content of the Dockerfile.

    The Dockerfile that was created by Visual COBOL results in the project being rebuilt and the creation of an image containing the project's build output. If you have edited the Dockerfile, however, the results depend on the commands specified in the Dockerfile.

    The name of the image will be the name of the project, and the image will be tagged as "latest". Depending on your organization's procedures and processes, before deploying the image you might need to rename or retag it, or perhaps rebuild it in conjunction with other images.