kompose up失败,无法构建图像



我正在尝试转换我的docker-compose.yml文件,该文件非常适合在带有kubectl的minikube中运行。

我已经安装了minikube、kubectl和kompose,当我尝试运行时,我得到了以下错误:

 C:UserstestDownloadsget-string-masterget-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 tmpkompose-image-build-399841535: The system cannot find the path specified.

这是我的docker撰写文件:

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

根据您发布的异常判断:

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

我可以建议您检查这个目录是否存在,并且您的用户是否有足够的权限访问它。

相关内容

  • 没有找到相关文章

最新更新