EE v4, docker installed but returns with error docker not found


#1
root@l2:~# sudo ee site create example.com
Error: Docker not installed or not running.
root@l2:~# docker -v
Docker version 18.09.0, build 4d60db4

Noticed this message during installation: Related?

Client:
 Version:           18.09.0
 API version:       1.39
 Go version:        go1.10.4
 Git commit:        4d60db4
 Built:             Wed Nov  7 00:48:57 2018
 OS/Arch:           linux/amd64
 Experimental:      false
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
If you would like to use Docker as a non-root user, you should now consider
adding your user to the "docker" group with something like:

  sudo usermod -aG docker your-user

Remember that you will have to log out and back in for this to take effect!

WARNING: Adding a user to the "docker" group will grant the ability to run
         containers which can be used to obtain root privileges on the
         docker host.
         Refer to https://docs.docker.com/engine/security/security/#docker-daemon-attack-surface
         for more information.

Thank you


#2

@klemen Can you attach the output of /opt/easyengine/logs/install.log here?


#3

@klemen

  1. Did you run the installation script? If so, please share the install logs available at /opt/easyengine/logs/install.log
  2. Also share the output of
    ee cli info,
    lsb_release -a
    uname -a

#4

I am running into the same issue but I am running Ubuntu 18.04 on WSL. Attached is my log.

-----> Checking dependencies
-----> Installing Docker
-----> Installing Docker
# Executing docker install script, commit: 4957679
+ sh -c apt-get update -qq >/dev/null
+ sh -c apt-get install -y -qq apt-transport-https ca-certificates curl >/dev/null
+ sh -c curl -fsSL "https://download.docker.com/linux/ubuntu/gpg" | apt-key add -qq - >/dev/null
Warning: apt-key output should not be parsed (stdout is not a terminal)
+ sh -c echo "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic edge" > /etc/apt/sources.list.d/docker.list
+ sh -c apt-get update -qq >/dev/null
+ sh -c apt-get install -y -qq --no-install-recommends docker-ce >/dev/null
If you would like to use Docker as a non-root user, you should now consider
adding your user to the "docker" group with something like:

  sudo usermod -aG docker your-user

Remember that you will have to log out and back in for this to take effect!

WARNING: Adding a user to the "docker" group will grant the ability to run
         containers which can be used to obtain root privileges on the
         docker host.
         Refer to https://docs.docker.com/engine/security/security/#docker-daemon-attack-surface
         for more information.
-----> Installing Docker-Compose
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
^M  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0^M  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0^M100   617    0   617    0     0   1164      0 --:--:-- --:--:-- --:--:--  1161
^M  0 11.2M    0 16360    0     0  15106      0  0:12:57  0:00:01  0:12:56 15106^M  9 11.2M    9 1104k    0     0   533k      0  0:00:21  0:00:02  0:00:19 1100k^M 20 11.2M   20 2378k    0     0   781k      0  0:00:14  0:00:03  0:00:11 1205k^M 32 11.2M   32 3772k    0     0   932k      0  0:00:12  0:00:04  0:00:08 1266k^M 44 11.2M   44 5048k    0     0  1000k      0  0:00:11  0:00:05  0:00:06 1269k^M 54 11.2M   54 6220k    $-----> Installing PHP
-----> Installing PHP extensions
-----> Installed PHP : 7.2
-----> Checking if required PHP modules are installed...
-----> pcntl is already installed

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Reading package lists...
Building dependency tree...
Reading state information...
0 upgraded, 0 newly installed, 0 to remove and 174 not upgraded.
-----> curl is already installed

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Reading package lists...
Building dependency tree...
Reading state information...
0 upgraded, 0 newly installed, 0 to remove and 174 not upgraded.
-----> sqlite3 is already installed

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Reading package lists...
Building dependency tree...
Reading state information...
0 upgraded, 0 newly installed, 0 to remove and 174 not upgraded.
-----> zip not installed. Installing...

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  libapache2-mod-php7.2 libzip4 php7.2-cli php7.2-common php7.2-curl php7.2-gd
  php7.2-json php7.2-mbstring php7.2-mysql php7.2-opcache php7.2-readline
  php7.2-sqlite3 php7.2-xml
Suggested packages:
  php-pear
The following NEW packages will be installed:
  libzip4 php7.2-zip
The following packages will be upgraded:
  libapache2-mod-php7.2 php7.2-cli php7.2-common php7.2-curl php7.2-gd
  php7.2-json php7.2-mbstring php7.2-mysql php7.2-opcache php7.2-readline
  php7.2-sqlite3 php7.2-xml
12 upgraded, 2 newly installed, 0 to remove and 162 not upgraded.
Need to get 4675 kB of archives.
After this operation, 197 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 php7.2-mysql amd64 7.2.10-0ubuntu0.18.04.1 [118 kB]
--
--
Get:14 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 php7.2-zip amd64 7.2.10-0ubuntu0.18.04.1 [20.3 kB]
Fetched 4675 kB in 8s (565 kB/s)
(Reading database ... ^M(Reading database ... 5%^M(Reading database ... 10%^M(Reading database ... 15%^M(Reading database ... 20%^M(Reading database ... 25%^M(Reading database ... 30%^M(Reading database ... 35%^M(Reading database ... 40%^M(Reading database ... 45%^M(Reading database ... 50%^M(Reading database ... 55%^M(Reading database ... 60%^M(Reading database ... 65%^M(Reading database ... 70%^M(Reading database ... 75%$
Preparing to unpack .../00-php7.2-mysql_7.2.10-0ubuntu0.18.04.1_amd64.deb ...
Unpacking php7.2-mysql (7.2.10-0ubuntu0.18.04.1) over (7.2.7-0ubuntu0.18.04.2) ...
Preparing to unpack .../01-php7.2-opcache_7.2.10-0ubuntu0.18.04.1_amd64.deb ...
Unpacking php7.2-opcache (7.2.10-0ubuntu0.18.04.1) over (7.2.7-0ubuntu0.18.04.2) ...
Preparing to unpack .../02-php7.2-json_7.2.10-0ubuntu0.18.04.1_amd64.deb ...
Unpacking php7.2-json (7.2.10-0ubuntu0.18.04.1) over (7.2.7-0ubuntu0.18.04.2) ...
Preparing to unpack .../03-php7.2-readline_7.2.10-0ubuntu0.18.04.1_amd64.deb ...
Unpacking php7.2-readline (7.2.10-0ubuntu0.18.04.1) over (7.2.7-0ubuntu0.18.04.2) ...
Preparing to unpack .../04-php7.2-mbstring_7.2.10-0ubuntu0.18.04.1_amd64.deb ...
Unpacking php7.2-mbstring (7.2.10-0ubuntu0.18.04.1) over (7.2.7-0ubuntu0.18.04.2) ...
Preparing to unpack .../05-php7.2-curl_7.2.10-0ubuntu0.18.04.1_amd64.deb ...
Unpacking php7.2-curl (7.2.10-0ubuntu0.18.04.1) over (7.2.7-0ubuntu0.18.04.2) ...
Preparing to unpack .../06-php7.2-sqlite3_7.2.10-0ubuntu0.18.04.1_amd64.deb ...
Unpacking php7.2-sqlite3 (7.2.10-0ubuntu0.18.04.1) over (7.2.7-0ubuntu0.18.04.2) ...
Preparing to unpack .../07-php7.2-xml_7.2.10-0ubuntu0.18.04.1_amd64.deb ...
Unpacking php7.2-xml (7.2.10-0ubuntu0.18.04.1) over (7.2.7-0ubuntu0.18.04.2) ...
Preparing to unpack .../08-php7.2-gd_7.2.10-0ubuntu0.18.04.1_amd64.deb ...
Unpacking php7.2-gd (7.2.10-0ubuntu0.18.04.1) over (7.2.7-0ubuntu0.18.04.2) ...
Preparing to unpack .../09-libapache2-mod-php7.2_7.2.10-0ubuntu0.18.04.1_amd64.deb ...
Unpacking libapache2-mod-php7.2 (7.2.10-0ubuntu0.18.04.1) over (7.2.7-0ubuntu0.18.04.2) ...
Preparing to unpack .../10-php7.2-cli_7.2.10-0ubuntu0.18.04.1_amd64.deb ...
Unpacking php7.2-cli (7.2.10-0ubuntu0.18.04.1) over (7.2.7-0ubuntu0.18.04.2) ...
Preparing to unpack .../11-php7.2-common_7.2.10-0ubuntu0.18.04.1_amd64.deb ...
Unpacking php7.2-common (7.2.10-0ubuntu0.18.04.1) over (7.2.7-0ubuntu0.18.04.2) ...
Selecting previously unselected package libzip4:amd64.
Preparing to unpack .../12-libzip4_1.1.2-1.1_amd64.deb ...
Unpacking libzip4:amd64 (1.1.2-1.1) ...
Selecting previously unselected package php7.2-zip.
Unpacking php7.2-zip (7.2.10-0ubuntu0.18.04.1) ...
Setting up php7.2-common (7.2.10-0ubuntu0.18.04.1) ...
Setting up php7.2-sqlite3 (7.2.10-0ubuntu0.18.04.1) ...
Setting up php7.2-curl (7.2.10-0ubuntu0.18.04.1) ...
Setting up php7.2-mbstring (7.2.10-0ubuntu0.18.04.1) ...
Setting up libzip4:amd64 (1.1.2-1.1) ...
Setting up php7.2-readline (7.2.10-0ubuntu0.18.04.1) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Processing triggers for man-db (2.8.3-2) ...
Setting up php7.2-json (7.2.10-0ubuntu0.18.04.1) ...
Setting up php7.2-opcache (7.2.10-0ubuntu0.18.04.1) ...
Setting up php7.2-mysql (7.2.10-0ubuntu0.18.04.1) ...
Setting up php7.2-gd (7.2.10-0ubuntu0.18.04.1) ...
Setting up php7.2-xml (7.2.10-0ubuntu0.18.04.1) ...
Setting up php7.2-zip (7.2.10-0ubuntu0.18.04.1) ...

Creating config file /etc/php/7.2/mods-available/zip.ini with new version
Setting up php7.2-cli (7.2.10-0ubuntu0.18.04.1) ...
Setting up libapache2-mod-php7.2 (7.2.10-0ubuntu0.18.04.1) ...
libapache2-mod-php7.2: not switching MPM - already enabled
-----> Setting up EasyEngine
-----> Downloading EasyEngine phar
Will not apply HSTS. The HSTS database must be a regular and non-world-writable file.
ERROR: could not open HSTS store at '/home/erik/.wget-hsts'. HSTS will be disabled.
--2018-12-04 19:06:43--  https://raw.githubusercontent.com/EasyEngine/easyengine-builds/master/phar/easyengine.phar
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.0.133, 151.101.64.133, 151.101.128.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.0.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5406854 (5.2M) [application/octet-stream]
Saving to: ‘/usr/local/bin/ee’

     0K .......... .......... .......... .......... ..........  0% 2.03M 3s
    
  2450K .......... .......... .......... .......... .......... 47% 2.12M 1s

2018-12-04 19:06:46 (2.42 MB/s) - ‘/usr/local/bin/ee’ saved [5406854/5406854]

-----> Pulling EasyEngine docker images
-----> Pulling EasyEngine docker images
+-------------------+-------------------------------------------------------------------------------+
| OS                | Linux 4.4.0-17763-Microsoft #55-Microsoft Sat Oct 06 18:05:00 PST 2018 x86_64 |
| Shell             | /bin/bash                                                                     |
| PHP binary        | /usr/bin/php7.2                                                               |
| PHP version       | 7.2.10-0ubuntu0.18.04.1                                                       |
| php.ini used      | /etc/php/7.2/cli/php.ini                                                      |
| EE root dir       | phar://ee.phar                                                                |
| EE vendor dir     | phar://ee.phar/vendor                                                         |
| EE phar path      | /home/erik                                                                    |
| EE packages dir   |                                                                               |
| EE global config  |                                                                               |
| EE project config |                                                                               |
| EE version        | 4.0.4                                                                         |
+-------------------+-------------------------------------------------------------------------------+
-----> Run "ee help site" for more information on how to create a site.
-----> Checking dependencies
-----> Installing Docker
-----> Installing PHP
-----> Installing PHP extensions
-----> Installed PHP : 7.2
-----> Checking if required PHP modules are installed...

#5

Running into the same issue here as well on Digital Ocean

root@easy-engine-40:~# ee site list
Error: Docker not installed or not running.
root@easy-engine-40:~# ee cli info
±------------------±---------------------------------------------------------------------------+
| OS | Linux 4.18.0-12-generic #13-Ubuntu SMP Wed Nov 14 15:17:05 UTC 2018 x86_64 |
| Shell | /bin/bash |
| PHP binary | /usr/bin/php7.2 |
| PHP version | 7.2.13-1+ubuntu18.10.1+deb.sury.org+1 |
| php.ini used | /etc/php/7.2/cli/php.ini |
| EE root dir | phar://ee.phar |
| EE vendor dir | phar://ee.phar/vendor |
| EE phar path | /root |
| EE packages dir | |
| EE global config | /opt/easyengine/config/config.yml |
| EE project config | |
| EE version | 4.0.5 |
±------------------±---------------------------------------------------------------------------+
root@easy-engine-40:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.10
Release: 18.10
Codename: cosmic
root@easy-engine-40:~# uname -a
Linux easy-engine-40 4.18.0-12-generic #13-Ubuntu SMP Wed Nov 14 15:17:05 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux