You usually have to be in the right routing table or network namespace for this to work. You can get a shell in the container and try to open a telnet connection if that's installed. Else you can cat < /dev/tcp/127.0.0.1/25
this post was submitted on 13 Jan 2023
4 points (100.0% liked)
Asklemmy
43811 readers
889 users here now
A loosely moderated place to ask open-ended questions
If your post meets the following criteria, it's welcome here!
- Open-ended question
- Not offensive: at this point, we do not have the bandwidth to moderate overtly political discussions. Assume best intent and be excellent to each other.
- Not regarding using or support for Lemmy: context, see the list of support communities and tools for finding communities below
- Not ad nauseam inducing: please make sure it is a question that would be new to most members
- An actual topic of discussion
Looking for support?
Looking for a community?
- Lemmyverse: community search
- sub.rehab: maps old subreddits to fediverse options, marks official as such
- !lemmy411@lemmy.ca: a community for finding communities
~Icon~ ~by~ ~@Double_A@discuss.tchncs.de~
founded 5 years ago
MODERATORS
telnet is not installed in the container. I tried you command... but error. ls /dev/ lists no tcp directory...
i did this IN the container named lemmy.
# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
158: eth1@if159: <BROADCAST,MULTICAST,UP,LOWER_UP,M-DOWN> mtu 1500 qdisc noqueue state UP
link/ether 02:42:ac:1d:00:04 brd ff:ff:ff:ff:ff:ff
inet 172.29.0.4/16 brd 172.29.255.255 scope global eth1
valid_lft forever preferred_lft forever
160: eth0@if161: <BROADCAST,MULTICAST,UP,LOWER_UP,M-DOWN> mtu 1500 qdisc noqueue state UP
link/ether 02:42:ac:1e:00:03 brd ff:ff:ff:ff:ff:ff
inet 172.30.0.3/16 brd 172.30.255.255 scope global eth0
valid_lft forever preferred_lft forever