The first step in preparing a COBOL application to be debugged in a container is to use Enterprise Developer to build the application for debugging as you would normally.
If you are working with the Docker demonstrations, project files are supplied to enable you to do this.