How to use localhost to access Docker containers #565
Replies: 10 comments 10 replies
-
What does |
Beta Was this translation helpful? Give feedback.
-
/etc/hosts
colima status
|
Beta Was this translation helpful? Give feedback.
-
I have been using Not sure if useful but doing
But this the same image/command I have been using for a long time. |
Beta Was this translation helpful? Give feedback.
-
Did you end up figuring this out? I'm experiencing the same problem. |
Beta Was this translation helpful? Give feedback.
-
Nah. Tried a few times but gave up and back to Docker |
Beta Was this translation helpful? Give feedback.
-
The issue here is that I am unable to reproduce it.
How do you test your dynamodb connection, what client do you use? I am able to communicate with This my ##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost |
Beta Was this translation helpful? Give feedback.
-
Seems this might be related lima-vm/lima#1330 |
Beta Was this translation helpful? Give feedback.
-
Hi, |
Beta Was this translation helpful? Give feedback.
-
Hope this helps someone else... I stumbled up on this after running # file: ~/.lima/default/lima.yaml
propagateProxyEnv: null I updated this value to |
Beta Was this translation helpful? Give feedback.
-
In case it's helpful to others having their connection reset on localhost, make sure your app itself is binding to |
Beta Was this translation helpful? Give feedback.
-
Trying to switch to colima from Docker Desktop on mac but having issues reaching my containers on localhost.
Removed Docker Desktop and installed colimna/docker w homebrew. Colima starts fine.
I have a command that I use to run Dynamo:
When I was using Docker Desktop I could reach the database on localhost:8000. Now it's only accessible on 127.0.0.1:8000
My
/etc/hosts
correctly maps localhost - this is an issue with the switch. Not finding much online regarding this - any ideas? It seems that docker no longer recognizeslocalhost
as an alias for127.0.0.1
after the switch. Not using Kubernetes or docker compose.I am on MacOS Ventura, latest colima (also tried --HEAD from homebrew). From what I read it localhost should work - any idea what to look at?
Beta Was this translation helpful? Give feedback.
All reactions