Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Git 从compose文件构建容器在portainer中失败_Git_Docker_Docker Compose_Portainer - Fatal编程技术网

Git 从compose文件构建容器在portainer中失败

Git 从compose文件构建容器在portainer中失败,git,docker,docker-compose,portainer,Git,Docker,Docker Compose,Portainer,我试图从本地git服务器在portainer中运行一个堆栈,该堆栈应该从同一git服务器构建两个容器,但当我尝试在portainer中部署它时,它失败了 我首先制作了一个git存储库,其中包含了我想作为子模块构建的contianers的项目 我从命令行克隆这个存储库并使用docker compose构建它没有问题,但是当我从portainer中进行同样的操作时,我得到了一个“找不到Dockerfile” 然后,我将docker compose文件更改为在构建行中包含git存储库,如下所示: ve

我试图从本地git服务器在portainer中运行一个堆栈,该堆栈应该从同一git服务器构建两个容器,但当我尝试在portainer中部署它时,它失败了

我首先制作了一个git存储库,其中包含了我想作为子模块构建的contianers的项目

我从命令行克隆这个存储库并使用docker compose构建它没有问题,但是当我从portainer中进行同样的操作时,我得到了一个“找不到Dockerfile”

然后,我将docker compose文件更改为在构建行中包含git存储库,如下所示:

version: '2'
services:
  frontend:
    build: http://someaddres/CatalogFrontEnd.git
    restart: unless-stopped
    ports:
      - "4000:8080"
    volumes:
      - /opt/mds:/app/mds
    environment:
      - DB_IP=192.168.2.181
      - DB_NAME=Catalog
      - AUTH=ldap
  db:
    image: microsoft/mssql-server-linux
    restart: unless-stopped
    ports:
      - "1433:1433"
    volumes:
      - /opt/db:/var/opt/mssql/data
    environment:
      - ACCEPT_EULA=Y
      - SA_PASSWORD=somthing
      - MSSQL_PID=Express
同样,使用docker compose在命令行中工作得很好,但是portainer给出了相同的“找不到Dockerfile”

数据库启动得很好,但它没有构建前端