Cannot connect to the Docker daemon
MtnBiker opened this issue · comments
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Rails 7. StartKit
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
=> Docker not running
To continue please run Docker
========
➜ ruby -v
ruby 3.1.2p20
Not 3.2.2 because this MBA won't let puma launch.. But you didn't specify a Ruby version.
Gemfile does show 3.2.1. Also gem "rails", "7.0.7.2" which probably should be updated.
Is the docker daemon running?
@MtnBiker please install and run docker and try again
@MtnBiker
This video shows how it should work https://www.youtube.com/watch?v=f6aAwAMH4Q8
Hi @MtnBiker
You have done a great job! Everything goes well and you are close to solve the case with docker
Option 1
Please try to find docker icon on your computer and click it and run.
![Screenshot 2023-10-08 at 08 41 19](https://private-user-images.githubusercontent.com/496713/273427976-e9762778-2667-4db7-a3e2-6c375fc7b468.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA1ODY1NTksIm5iZiI6MTcyMDU4NjI1OSwicGF0aCI6Ii80OTY3MTMvMjczNDI3OTc2LWU5NzYyNzc4LTI2NjctNGRiNy1hM2UyLTZjMzc1ZmM3YjQ2OC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzEwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcxMFQwNDM3MzlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1lMmZhOWEyMWI0NzYxYTNlMzEyNWU2NjYwNTY0N2Y0YjZjYzU5ODQ5NWY3YTg3ZmIxYzgwY2E2NWY0M2JjYjM2JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.Ro5bcdH4MJZ6oD6B0uVqA0qM6voJpNwi9DV8AUm_HyA)
Usually it should run Docker UI and start Docker service.
![Screenshot 2023-10-09 at 13 53 38](https://private-user-images.githubusercontent.com/496713/273564273-9dafdcb4-30d7-4385-b098-b5f923b781e0.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA1ODY1NTksIm5iZiI6MTcyMDU4NjI1OSwicGF0aCI6Ii80OTY3MTMvMjczNTY0MjczLTlkYWZkY2I0LTMwZDctNDM4NS1iMDk4LWI1ZjkyM2I3ODFlMC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzEwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcxMFQwNDM3MzlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT04ZDU0MDgyMjJmM2ZkMDliYmRlMzA0OGQxOTRhMjEyNWY3NjQ5NGZiOTE2YWYwNGI2ZDE5YjEwNDY5NDlmM2VmJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.vMz-rehS-Cv1Wb7h9cyPMZBS1Ys8k1M_s90iOIA69_Q)
![Screenshot 2023-10-08 at 08 41 07](https://private-user-images.githubusercontent.com/496713/273427982-0c4c8748-c1c4-4061-87d0-1190bd902cae.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA1ODY1NTksIm5iZiI6MTcyMDU4NjI1OSwicGF0aCI6Ii80OTY3MTMvMjczNDI3OTgyLTBjNGM4NzQ4LWMxYzQtNDA2MS04N2QwLTExOTBiZDkwMmNhZS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzEwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcxMFQwNDM3MzlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT04YjY1MGZkZWU3NjJhM2ZhMzllOTNkMjllZjgzOTIxNTZkNjdkYmEzZTVkYTdhYjJiZjVlODU5YTVlZDBiYmI3JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.Aaaf_hxAUFvszPtNjA_F_YIu7DlzbB_OwF4q39giNg4)
Option 2
IF for a reason you can not find the icon - there is a documentation how to run service from the terminal window.
https://docs.docker.com/config/daemon/start/
@MtnBiker Please keep me informed about your situation.
Also you should be careful with typing
🛑 Not ./bin exec restart_all
🟢 bin/exec resatrt_all
or (mostly for windows) ruby bin/exec resatrt_all
Hello @MtnBiker !
- from your messages I saw that you already have docker:
Docker version 24.0.6, build ed223bc820
- Docker was not started
Cannot connect to the Docker daemon
Docker is very popular tool and since Rails release 7.1
even is a default tool for Rails.
The only problem you had - Docker was not started on your computer. I'm sorry that you didn't find a way to launch it.
second recommendation requires sudo
I'm sure no. Commandbin/exec
orruby bin/exec
runs a simple ruby script. There is not need to usesudo
. Please, check file permissions on your computer, from the root of the projectls -al ./bin
If you need any help please let me know