Closed hoshsadiq closed 3 years ago
I take a look, are you running rootless or rootful?
I was running rootless.
Thanks for the issue @hoshsadiq. I finally figured out what is going on in https://github.com/containers/podman/issues/10052. This is basically the same problem. I am not sure if there is a short term fix but for now you could use static ips, e.g:
version: '3.7'
services:
redis:
image: docker.io/library/redis:latest
ports:
- 127.0.0.1:6379:6379
networks:
main:
ipv4_address: 172.16.10.3
redis-ui:
image: docker.io/rediscommander/redis-commander:latest
restart: always
environment:
- REDIS_HOSTS=local:redis:6379
depends_on:
- redis
networks:
main:
ipv4_address: 172.16.10.4
ports:
- 127.0.0.1:8063:8081
networks:
main:
ipam:
config:
- subnet: 172.16.10.0/24
Thanks for the info, I'll use static IPs for now! Since this is already being tracked I'll close this one.
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
Steps to reproduce the issue:
Use compose file below:
docker-compose up
Describe the results you received:
I'm unable to connect to the port for the
redis-ui
service (it just hangs, with the browser eventually saying connection was reset).Changing the port for
redis-ui
from8063
to8081
allows the service to be accessible again, however, it is accessible only on port8063
still.Anyway, it looks to me like it's the
depends_on
option that is the issue, as removing it fixes the issue.Subsequently removing
depends_on
causes it to work normally:Describe the results you expected:
Ports accessible with
depends_on
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/master/troubleshooting.md)
Yes
Additional environment details (AWS, VirtualBox, physical, etc.): Physical