Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 6107

Could not connect to a docker provider. Please start or install a docker provider

$
0
0

I am installing Drupal on Linux(Ubuntu 20.04) using ddev. ddev requires docker installed and in Ubuntu, I can connect with docker using sudo. If I want to check for the running container I will use the command.

sudo docker ps

But when I run this command to configure the local environment using ddev. I got this error. The error tells that ddev unable to connect with docker provider.

ddev config --docroot web --project-name my-site --project-type drupal10 --create-docroot

This error is given.

Could not connect to a docker provider. Please start or install a docker provider.

The solution to this issue is that I need to make the docker run without sudo. I have browsed this issue and found different solutions and tried them but none of them is working. These are the coammands I tried to solve the issue.

I tried to run the ddev command using sudo this got this error.

sudo ddev config --docroot web --project-name my-site --project-type drupal10 --create-docroot

WARN[0000] not reading global config file because running with root privilegesNot populating custom commands or hostadditions because running with root privilegesddev is not designed to be run with root privileges, please run as normal user and without sudo

sudo groupadd dockersudo usermod -aG docker $(whoami)sudo service docker start

But this has not solved the issue. I have followed this link for the solution but that also has not worked.Docker can't connect to docker daemon

How do I solve the problem?


Viewing all articles
Browse latest Browse all 6107

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>