Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with port forwarding and latest lima 1.0 #1181

Closed
1 of 5 tasks
matejsp opened this issue Nov 6, 2024 · 8 comments · Fixed by #1182
Closed
1 of 5 tasks

Issue with port forwarding and latest lima 1.0 #1181

matejsp opened this issue Nov 6, 2024 · 8 comments · Fixed by #1182

Comments

@matejsp
Copy link
Contributor

matejsp commented Nov 6, 2024

Description

When starting docker port forwarding does not work. I can run docker commands and start containers, however port forwarding is not working anymore.

Version

colima version && limactl --version && qemu-img --version
colima version 0.7.6
git commit: 3ab92f5

runtime: docker
arch: aarch64
client: v27.3.1
server: v27.3.1
limactl version 1.0.0
qemu-img version 9.1.1
Copyright (c) 2003-2024 Fabrice Bellard and the QEMU Project developers

Operating System

  • macOS Intel <= 13 (Ventura)
  • macOS Intel >= 14 (Sonoma)
  • Apple Silicon <= 13 (Ventura)
  • Apple Silicon >= 14 (Sonoma)
  • Linux

Output of colima status

INFO[0000] colima is running using macOS Virtualization.Framework
INFO[0000] arch: aarch64
INFO[0000] runtime: docker
INFO[0000] mountType: virtiofs
INFO[0000] socket: unix:///Users/matej.spiller-muys/.colima/default/docker.sock

Reproduction Steps

  1. upgrade lima
  2. colima stop
  3. colima start
  4. port forwarding is not working (not TCP not UDP)

Expected behaviour

I was actually looking forward to UDP socket with docker.

Additional context

Workaround is to run as:
LIMA_SSH_PORT_FORWARDER=true colima start

@matejsp matejsp changed the title Issue with latest lima 1.0 Issue with port forwarding and latest lima 1.0 Nov 6, 2024
@abiosoft
Copy link
Owner

abiosoft commented Nov 6, 2024

Thanks for reporting this.

@abiosoft
Copy link
Owner

abiosoft commented Nov 6, 2024

This has been created as a workaround #1182.

@abiosoft
Copy link
Owner

abiosoft commented Nov 6, 2024

@matejsp can you confirm if the workaround fixes it?

brew install --head colima

@k0d3r1s
Copy link

k0d3r1s commented Nov 6, 2024

@abiosoft it fixes it :) came here to report same issue but it is now working correctly

@matejsp
Copy link
Contributor Author

matejsp commented Nov 6, 2024

Nice. The workaround works. But it is still workaround.
Looking forward to proper solution so we can get UDP port forwarding working.

Should we open another task for enabling new port forwarding?
Why is it not working with new better and faster way?
Can you perhaps point me to what would need to be changed to achieve this?

@abiosoft
Copy link
Owner

abiosoft commented Nov 6, 2024

I am not yet sure and I would need to do more testing to verify the root cause.

Should we open another task for enabling new port forwarding?

@matejsp maybe we can utilise this issue for that #708.

@matejsp
Copy link
Contributor Author

matejsp commented Nov 6, 2024

Perfect!

@abiosoft
Copy link
Owner

abiosoft commented Nov 8, 2024

A new release has been published.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants