我目前正在尝试使用 Docker 在 Azure 应用服务上启动 ElasticSearch。我通过 azure 应用程序服务中提供的 ssh 安装 docker。 Docker 似乎在控制台中安装正常,但是当我运行时
docker pull docker.elastic.co/elasticsearch/elasticsearch:7.6.2
我在 ssh 控制台中收到以下错误:
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
我已经安装和卸载了几次 Docker,但仍然遇到相同的错误
最佳答案
由于其限制,Azure 应用服务不允许您运行 Elastic Search
您可以在 Azure 上使用 Elastic 即服务,或者将其安装在 AKS 或 VM 中。
https://azuremarketplace.microsoft.com/en-us/marketplace/apps/elastic.ec-azure?tab=Overview
您正在尝试在 Docker 容器内安装 Docker
适用于 Linux 的应用服务附带了一堆预配置的容器,例如 Node、PHP、Java、Python、Ruby 和 .NET Core。
https://anthonychu.ca/post/jekyll-azure-app-service-linux/
您提到的确切问题意味着 Docker 守护进程未在您的 Linux 环境中启动
要启动 Docker 守护进程,请使用命令:
systemctl start docker
关于Azure应用程序服务无法正确安装docker,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68003067/