Linux - ContainersThis forum is for the discussion of all topics relating to Linux containers. Docker, LXC, LXD, runC, containerd, CoreOS, Kubernetes, Mesos, rkt, and all other Linux container platforms are welcome.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am trying to telnet a server and within few seconds it pops me out .
[S][Fri Apr 13 23:49:45] ~]$telnet 10.137.81.158 5044
Trying 10.137.81.158...
Connected to 10.137.81.158.
Escape character is '^]'.
Connection closed by foreign
[~]$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
b9750e12aec5 dev-ubuntu-docker.mycom-osi.com:5000/mycomosi/monitoring-logstash "supervisord -n -c /e" 6 hours ago Up 6 hours 0.0.0.0:5044->5044/tcp monitoring-logstash.container
d32058878d18 dev-ubuntu-docker.mycom-osi.com:5000/mycomosi/monitoring-influxdb "supervisord -n -c /e" 6 hours ago Up 6 hours 0.0.0.0:8083->8083/tcp, 0.0.0.0:8086->8086/tcp, 0.0.0.0:8089->8089/udp, 0.0.0.0:8088->8088/tcp, 0.0.0.0:25826->25826/udp monitoring-influxdb.container
[mycom@NVMBD1CGM270V04 ~]$
I am also unfamiliar with docker and probably can't help you with your real problem but in addition to what frankbell posted telnet can be used to test a connection but since it is text protocol it will fail as posted when trying to connect to a service that uses a binary protocol.
As an aside, the last time I used Telnet, I was on DOS 5.1 on an x386 helping my daughter, who is now all grown up and a fully functional adult of whom I am very proud, connect with a newspaper in Brazil for her homework.
A web search for "telnet rejected" will turn up lots of useful stuff, but I would bet a dollar to a doughnut that the Telnet port is closed.
If you are to use telnet (or better, nc), you should know how the protocol works. AFAIK, this one is not an interactive text protocol.
So, the fact that you get a connection is an indication that it works.
If you want to do more, then you should use other tools that are suggested for this case.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.