abiosoft / colima

Container runtimes on macOS (and Linux) with minimal setup
MIT License
17.73k stars 364 forks source link

Instance name "colima" too long: colima fails to start when symlink ~/.colima points to a very long UNIX path name #1036

Open davidandreoletti opened 1 month ago

davidandreoletti commented 1 month ago

Description

~/.colima config is symlink to a dotfiles repository. This dotfiles repository full path is longer than UNIX_PATH_MAX characters. Due to this constraint, colima fails to start.

Version

No response

Operating System

Output of colima status

colima: 0.69 limactl: 0.22.0 qemu-img: 9.0.0

Reproduction Steps

  1. colima start -f
  2. colima stop
  3. colima destroy
  4. mv ~/.colima $HOME/Documents/Developments/DOTFILES_WORKSPACE/dotfiles/
  5. ln -s $HOME/Documents/Developments/DOTFILES_WORKSPACE/dotfiles/ ~/.colima
  6. colima start -f

    INFO[0000] starting colima INFO[0000] runtime: docker INFO[0000] creating and starting ... context=vm Terminal is not available, proceeding without opening an editor instance name "colima" too long: "/Users/davidandreoletti/Documents/Developments/DOTFILES_WORKSPACE/dotfiles/.colima/_lima/colima/ssh.sock.1234567890123456" must be less than UNIX_PATH_MAX=104 characters, but is 121 FATA[0000] error starting vm: error at 'creating and starting': exit status 1

Expected behaviour

Successful colima start

Additional context

Workaround: With a user defined LIMA_HOME set a to short path (eg: ~/.colima_lima), the issue is gone.