0

我目前正在尝试使用 Docker 在 Azure 应用服务上启动 ElasticSearch。我通过 azure app services 中可用的 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,但仍然出现相同的错误

4

1 回答 1

2

由于其限制,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
于 2021-06-16T14:23:32.037 回答