Docker Community Forums

Share and learn in the Docker community.

Open port in docker container


(Naveenn20) #1

The log messages from the application is sent to my aws machine(host) with port 5418. My docker image is the Sumologic collector which helps for log management and analytics.
I have provided the below configuration in the Dockerfile for opening the port,
EXPOSE 5418/tcp
Using the below provided command, I run the container,
docker run -t -i -p 5418:5418 image /bin/bash service collector start

The log messages are not logged in sumologic cloud server. Can you help with this?

Thanks,
Naveen