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

Ducker should respect the DOCKER_HOST environment variable #113

Open
danyshs opened this issue Nov 11, 2024 · 4 comments
Open

Ducker should respect the DOCKER_HOST environment variable #113

danyshs opened this issue Nov 11, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@danyshs
Copy link

danyshs commented Nov 11, 2024

Describe the bug
Installed Ducker, and tried to run it, but can't debug why it's throwing an error because it's throwing multiple and doesn't point towards a valid file

To Reproduce
Steps to reproduce the behavior:

  1. Install Ducker
  2. Try to run it
  3. Location where the error points to while being thrown doesn't exist

Expected behavior
Ideally it should just work, but at least it should throw an error that points to a valid directory

Screenshots
image

Desktop (please complete the following information):

  • OS: WSL2 - Arch Linux (Base; Windows 11)
  • Version 5.15.153.1-microsoft-standard-WSL2
@danyshs danyshs added the bug Something isn't working label Nov 11, 2024
@robertpsoane
Copy link
Owner

@danyshs this seems to be a config issue

The error is essentially a prettified stack trace, and it should be read as
"Error - 0: ... because 1:... because ...", with the location referencing the location of line in the source code that's raised the error

Ducker is unable to find the docker socket file (usually unix:///var/run/docker.sock)

Does that file exist? If it does, what happens if you execute docker image ls?

@robertpsoane robertpsoane added question Further information is requested and removed bug Something isn't working labels Dec 1, 2024
@katertier
Copy link

I'm in the same boat albeit on Mac with Colima which insists to put its docker.sock into ~/.colima/ to not interfere with Docker Desktop.

@danyshs: did you enable WSL2 integration in Docker Desktop? Check your DOCKER_HOST environment variable and add it as parameter when using ducker (-d), or create a config file with -e and update it.

@robertpsoane: ducker seems to ignore DOCKER_HOST, maybe add reading it in a future version (at least for local files)?

@danyshs
Copy link
Author

danyshs commented Dec 3, 2024

[I have Docker-cli on wsl, I don't have Docker Desktop!]

I..............think I realized what the issue was.
At the time of making the post, I think the docker daemon was off.

All is well now.

@danyshs
Copy link
Author

danyshs commented Dec 3, 2024

Either that, or when I had no containers or images loaded up, it had a breaking error rather than launching to an empty screen.
That is a possibility too.

@robertpsoane robertpsoane changed the title [BUG] Error points towards non-existent directory. Ducker should respect the DOCKER_HOST environment variable Dec 3, 2024
@robertpsoane robertpsoane added enhancement New feature or request and removed question Further information is requested labels Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants