kompose up失败,无法建立映像

时间:2018-11-14 10:51:13

标签: docker-compose kubectl minikube kompose

您好,iam试图将docker-compose.yml文件转换为可以很好地在带有kubectl的minikube中运行的文件。

我已经安装了minikube,kubectl和kompose,当我尝试运行时出现以下错误,

 C:\Users\test\Downloads\get-string-master\get-string-master> .\kompose-windows-amd64.exe -f .\docker-compose.yml up
INFO Build key detected. Attempting to build and push image 'mainapp'
INFO Building image 'mainapp' from directory 'mainapp'
FATA Error while deploying application: k.Transform failed: Unable to build Docker image for service mainapp: open \tmp\kompose-image-build-399841535: The system cannot find the path specified.

我的docker compose文件运行正常,如下所示,

version: '3'

services:

mainapp:
    container_name: mainapp
    restart: always
    build: ./mainapp
    image: mainapp
    ports:
        - "8000:8000"
    command: gunicorn -c gunicorn.ini mainapp.application:app

reverseapp:
    container_name: reverseapp
    restart: always
    build: ./reverseapp
    image: reverseapp
    ports:
      - "8001:8001"
    depends_on:
      - mainapp
    command: gunicorn -c gunicorn.ini reverseapp.application:app

 nginx:
    container_name: nginx
    restart: always
    build: ./nginx
    image: nginx1
    ports:
      - "80:80"
    depends_on:
      - reverseapp

1 个答案:

答案 0 :(得分:0)

根据您发布的异常判断:

  

\ tmp \ kompose-image-build-399841535:系统找不到路径   指定

我建议您检查此目录是否存在,并且您的用户具有足够的权限来访问它。

相关问题