Can't connect to container services in container or host mode #27159
-
Hi there, I tried to set up a service container of localstack and postgres following the docs: About service containers - GitHub Docs I keep running into connection refused error connecting via docker network alias (in containerized job). In host-mode I got further with a test non-containerized step, the client is able to establish a connection, but immediately terminated. This is odd because I couldn’t repro this issue on my localbox with the same localstack version and config. I’m hoping someone could point out something wrong with my setup. I’m interested in getting containerized steps to be able to connect via network aliases, e.g. “http://localstack:4572”.
I also tried containerized job mode with a In containerized mode, I also tried taking out the I also eliminated the possibility localstack just wasn’t ready for taking requests using a long sleep. Thanks in advance. hussein |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Argh. Turns out it wasn’t a network issue. The network aliases work as advertised. I didn’t realize ${VAR-DEFAULT_VAL} is a bash syntax and not supported. Closing the issue. |
Beta Was this translation helpful? Give feedback.
Argh. Turns out it wasn’t a network issue. The network aliases work as advertised. I didn’t realize ${VAR-DEFAULT_VAL} is a bash syntax and not supported.
Closing the issue.