the-teacher / rails7-startkit

Launch Rails with 1 shell command!

Home Page:https://github.com/the-teacher/rails7-startkit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot connect to the Docker daemon

MtnBiker opened this issue · comments

commented

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

commented

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

Usually it should run Docker UI and start Docker service.

Screenshot 2023-10-09 at 13 53 38 Screenshot 2023-10-08 at 08 41 07

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.

@MtnBiker

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

commented

Hello @MtnBiker !

  1. from your messages I saw that you already have docker: Docker version 24.0.6, build ed223bc820
  2. 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.

  1. second recommendation requires sudo I'm sure no. Command bin/exec or ruby bin/exec runs a simple ruby script. There is not need to use sudo. Please, check file permissions on your computer, from the root of the project ls -al ./bin

If you need any help please let me know