Похожие чаты

In docker, i can't curl into my container from the

host machine. although it works from within the container itself using docker exec
container is up and running. outputs:
$ curl http://localhost:7171/backup/list
curl: (56) Recv failure: Connection reset by peer
$ curl http://121.121.121.19:7171/backup/list
curl: (7) Failed to connect to 121.121.121.19 port 7171 after 0 ms: Connection refused
$ nc -zv 121.121.121.19 7171
nc: connect to 121.121.121.19 port 7171 (tcp) failed: Connection refused

my docker-compose:
my-service:
image: inc/something:latest
container_name: name
hostname: host_name
restart: always
networks:
project-network:
ipv4_address: 121.121.121.19

networks:
project-network:
name: project-network
ipam:
config:
- subnet: 121.121.121.0/20

i also have this in docker inspect:
"Ports": {
"7171/tcp": [
{
"HostIp": "0.0.0.0",
"HostPort": "7171"
},
{
"HostIp": "::",
"HostPort": "7171"
}
]
},

(IP's are modified, i type them in correctly in my actual commands)

netstat -tuln inside container:
tcp 0 0 127.0.0.1:7171 0.0.0.0:* LISTEN

on the host machine:
tcp 0 0 0.0.0.0:7171 0.0.0.0:* LISTEN
tcp6 0 0 :::7171 :::* LISTEN

i suspect that it's a firewall issue? because everything else seems ok

3 ответов

57 просмотров

What OS you are using?

Похожие вопросы

Обсуждают сегодня

Господа, а что сейчас вообще с рынком труда на делфи происходит? Какова ситуация?
Мелодичный Сырник
29
А вообще, что может смущать в самой Julia - бы сказал, что нет единого стандартного подхода по многим моментам, поэтому многое выглядит как "хаки" и произвол. Короче говоря, с...
Фетровый Лингвист
2
@Benzenoid can you tell me the easiest, and safest way to bu.y HEX now?
Настойчивый Кварк
20
This is a question from my wife who make a fortune with memes 😂😂 About the Migration and Tokens: 1. How will the old tokens be migrated to the new $LGCYX network? What is th...
Льдистая Лужица
2
30500 за редактор? )
Замшевый Алхимик
47
а через ESC-код ?
Виноградная Притча
29
What is the Dex situation? Agora team started with the Pnetwork for their dex which helped them both with integration. It’s completed but as you can see from the Pnetwork ann...
Звенящий Циферблат
1
Гайс, вопрос для разносторонее развитых: читаю стрим с юарта, нада выделять с него фреймы с определенной структурой, если ли чо готовое, или долбаться с ринг буффером? нада у...
Туманный Ларец
9
Anyone knows where there are some instructions or discort about failed bridge transactions ?
Длинный Минерал
21
@lozuk how do I get my phex copies of my ehex from a atomic wallet, to move to my rabby?
Тягучая Ракушка
11
Карта сайта