89luca89 / distrobox

Use any linux distribution inside your terminal. Enable both backward and forward compatibility with software and freedom to use whatever distribution you’re more comfortable with. Mirror available at: https://gitlab.com/89luca89/distrobox
https://distrobox.it/
GNU General Public License v3.0
10.18k stars 419 forks source link

[Error] Distrobox rm / Distrobox enter returns error when container has short environment variables #1546

Closed senioroman4uk closed 1 month ago

senioroman4uk commented 2 months ago

Please, before opening a bug:

Describe the bug Distrobox does not handle containers that have short environment variables

To Reproduce

  1. create a box with rocm/pytorch distrobox create --name rocm --image rocm/pytorch:latest --home ~/Boxes/rocm-pytorch
  2. try to enter this box or remove it
    distrobox enter rocm
distrobox rm rocm

Observe the error Error: template: inspect:1:37: executing "inspect" at <slice . 0 5>: error calling slice: index out of range: 5

Expected behavior Distrobox is entered / removed without any errors

Logs Run the commands with --verbose and post the log here as a file upload Attach also the output of podman logs or docker logs, possibly with --latest flag

logs.txt

Desktop (please complete the following information):

Additional context n/a

89luca89 commented 1 month ago

Solved by #1545