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

Cannot connect to the Docker daemon #250

Open
mridah opened this issue Mar 30, 2024 · 1 comment
Open

Cannot connect to the Docker daemon #250

mridah opened this issue Mar 30, 2024 · 1 comment

Comments

@mridah
Copy link

mridah commented Mar 30, 2024

Make sure these boxes are checked( - [x] ) before submitting an issue.

  • [x ] Running latest npm and node? (Run npm --version and node --version). Get the latest nodejs here.
  • [x ] The node_modules folder has right permissions (Run ls -ld $(npm root -g)/crontab-ui)
  • [x ] Read issues.md
  • [x ] Gone through existing open and closed issues.

I'm trying to execute the command

docker exec -it fireball bash /generate.sh test.json

image

However, I keep getting the following error :

Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

image

I'm not running the cron job from the web portal so it shouldn't be a problem of docker not being installed on the crontab-ui docker container.

This is what I'm trying to achieve :

image

Any idea what might be causing the issue??

@esbenboye
Copy link

If you want to run a docker command on your "Crontab UI Container", you need to have Docker installed and running. The message you get indicates that this is not the case.

If you want to execute a script on the "another container", you would need to figure out a way for your Crontab UI Container to communicate with the "another container" to make it do whatever it should do (ssh tunnel, http request, queue producer/consumer .... Whatever suits your needs).

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

No branches or pull requests

2 participants