To enable the trace for an SAP plugin application deployed on a BWCE environment (Docker container) follow the steps below.
1). Get the container ID or name of the application container using the command: docker ps -a
2). Login to the application container using the command: docker exec -it <Container ID> /bin/bash
3). Once logged in go to /tmp/tibco.home/bwce/<bwce version>/config
4). If an editor is installed on the container then edit the appnode_config.ini file and add the above mentioned trace properties. In case no editor is installed and if one does not wish to add additional packages to the container, then with the help of the command mentioned below copy the appnode_config.ini file to your host system and add the trace properties to it and then replace the modified appnode_config.ini file.
docker cp CONTAINER:SRC_PATH DEST_PATH
OR
docker cp SRC_PATH CONTAINER:DEST_PATH
where SRC_PATH=path of the source file.
and CONTAINER=name of the container.
and DEST_PATH= path where the source file needs to be copied.
5). Restart the application container using the command:
docker restart CONTAINER
where CONTAINER=name/ID of container
After completion of the steps above the trace files can be obtained from the respective directory as mentioned in the appnode_config.ini file.