Still new to Docker. I have created a WSO2 docker image successfully using instructions available here.
I would like to run it (
docker run wso2am:2.0.0
docker run -it wso2am:2.0.0 bash
You can try the below command. This will give you shell access to a running container.
docker exec -it <CONTAINER_ID> /bin/bash
To get the CONTAINER_ID issue
docker ps command first which will list down all running containers with their CONTAINER_IDs.
The reason it dumps logs when you execute with
-i -t is that it starts the carbon server during the
docker run in foreground. Therefore, you cannot execute any other shell commands in this mode. I am assuming that you might have configured this way in your docker file. Share your dockerfile if this doesn't answer the question.
Are you using dockerfiles from WSO2 docker repository?