rake-compiler / rake-compiler-dock

Easy to use and reliable cross compiler environment for building Windows, Linux, Mac and JRuby binary gems.
MIT License
78 stars 30 forks source link

docker installed but docker not installed error comes up #46

Closed benkoshy closed 1 year ago

benkoshy commented 3 years ago

Steps taken:

  1. Follow docker installation instructions here: https://docs.docker.com/engine/install/ubuntu/
  2. Run docker hello world. sudo docker run hello-world the following output is produced:

Hello from Docker! This message shows that your installation appears to be working correctly.

  1. cd into my gem file - in my case, this is the rmagic cloned repository directory:
~/Documents/www/OpenSourceProjects/rmagick
  1. Run the command:
koshy@koshy-System-Product-Name:~/Documents/www/OpenSourceProjects/rmagick$  rake-compiler-dock

And the following error pops up:

Neither Docker nor Podman is available.

Install Docker on Ubuntu/Debian:
    sudo apt-get install docker.io

Install Docker on Fedora/Centos/RHEL
    sudo yum install docker
    sudo systemctl start docker

Install Docker on SuSE
    sudo zypper install docker
    sudo systemctl start docker

Expected Result:

Please let me know if you require further information.

larskanis commented 3 years ago

Rake-compiler-dock checks docker per docker version, so it seems that this command fails. On Ubuntu it's necessary to add the running user to group docker . Otherwise docker fails with a permission error.

benkoshy commented 3 years ago

@larskanis Thank you Lars, I appreciate the comment. I will try this out - if succesfull will make a PR to document this.

benkoshy commented 3 years ago

I have added the user: koshy to the docker group.

getent group docker delivers the following response:

docker:x:990:koshy

However when I run:

koshy@koshy-System-Product-Name:~/Documents/www/OpenSourceProjects/rmagick$ rake-compiler-dock

The following still comes up:

Neither Docker nor Podman is available.

Install Docker on Ubuntu/Debian:
    sudo apt-get install docker.io

Install Docker on Fedora/Centos/RHEL
    sudo yum install docker
    sudo systemctl start docker

Install Docker on SuSE
    sudo zypper install docker
    sudo systemctl start docker

Any advice on the above would be much appreciated.

sutharsentio commented 2 years ago

I am also facing the same issue. Please help @larskanis

flavorjones commented 2 years ago

@benkoshy @sutharsentio can you please paste the output from docker version as well as whether that command exits with a 0 (successful) exit code?

benkoshy commented 2 years ago

Hey Mike, appreciate the support.

This was from a while ago. I would close the issue from my view point, but I suspect Amit @sutharsentio might want to pursue this?