Skip to main content
The 2024 Developer Survey results are live! See the results
11 events
when toggle format what by license comment
Nov 21, 2022 at 15:53 comment added Melly Donald Thank you so much!!
Nov 21, 2022 at 15:53 vote accept Melly Donald
Nov 21, 2022 at 12:57 comment added Daniel B I see now I misread the original Dockerfile. Sorry about that. This means my existing answer is largely not applicable, please see the updated answer.
Nov 21, 2022 at 12:55 history edited Daniel B CC BY-SA 4.0
Reading helps 🙄
Nov 21, 2022 at 10:51 comment added Melly Donald [+] Running 1/0 - Container ssh-pg-tunnel-1 Created 0.0s Attaching to ssh-pg-tunnel-1 ssh-pg-tunnel-1 | cp: can't stat '/root/ssh/*': No such file or directory ssh-pg-tunnel-1 exited with code 1
Nov 21, 2022 at 10:46 comment added Melly Donald On docker compose up I get the folllowing error: "cp: can't stat '/root/ssh/*': No such file or directory". Surprising as I cant see any reference to ssh.
Nov 16, 2022 at 8:15 comment added Daniel B You did run the container using docker compose up, right? And from the logs it did start correctly, yes? Try using 127.0.0.1 instead of localhost. There is a difference.
Nov 15, 2022 at 21:51 comment added Melly Donald Silly question. Thanks again. After building (docker-compose build), do I need to do anything else? When I try to connect to the DB, I get the following error: connection to server at "localhost" (::1), port 5432 failed: Connection refused (0x0000274D/10061)..
Nov 15, 2022 at 11:04 comment added Daniel B You don’t build images using docker run. Since you have a Compose file, you should be using docker compose build.
Nov 15, 2022 at 10:57 comment added Melly Donald Thank you. I get the following error when building the image: C:\Users\XXX> docker run -it --name magenta_item cagataygurturk/docker-ssh-tunnel:latest cp: can't stat '/root/ssh/*': No such file or directory
Nov 15, 2022 at 10:01 history answered Daniel B CC BY-SA 4.0