The first step in preparing a COBOL application to be debugged in a container is to use Visual COBOL to build the application for debugging as you would normally. You need to make sure that you specify the required bitism (32-bit or 64-bit).
If you are working with the Docker demonstrations, project and solution files are supplied to enable you to do this.