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

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

Closed
senioroman4uk opened this issue Sep 4, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@senioroman4uk
Copy link
Contributor

senioroman4uk commented Sep 4, 2024

Please, before opening a bug:

  • make sure you've read the documentation.
  • Ensure there isn't already an open issue about this.
  • Ensure there isn't already a closed/resolved issue about this.

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):

  • Are you using podman, docker or lilipod? podman
  • Which version or podman, docker or lilipod? 5.2.2
  • Which version of distrobox? 1.7.2.1
  • Which host distribution? bluefin-dx:latest
  • How did you install distrobox? Came pre-installed with the distro

Additional context
n/a

@senioroman4uk senioroman4uk added the bug Something isn't working label Sep 4, 2024
@senioroman4uk senioroman4uk changed the title [Error] [Error] Distrobox rm / Distrobox error returns error when container has short environment variables Sep 4, 2024
@senioroman4uk senioroman4uk changed the title [Error] Distrobox rm / Distrobox error returns error when container has short environment variables [Error] Distrobox rm / Distrobox enter returns error when container has short environment variables Sep 4, 2024
@89luca89
Copy link
Owner

Solved by #1545

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants