Skip to content

azd deploy "docker build" command error with container apps project [Issue] #4038

@dkirby-ms

Description

@dkirby-ms

Output from azd version
dakir@WIN-6FJOGCB45OV:~/health_ai$ azd version
azd version 1.9.3 (commit e162433)

Describe the bug
azd deploy fails with an error during docker build due to a missing path in /tmp

dakir@WIN-6FJOGCB45OV:~/health_ai$ azd deploy

Deploying services (azd deploy)

(x) Failed: Deploying service api

ERROR: failed building service 'api': building container: api at .: building image: exit code: 1, stdout: , stderr: 0 building with "default" instance using docker driver

1 [internal] load .dockerignore
1 transferring context: 2B done
1 DONE 0.0s

....

10 exporting to image
10 exporting layers done
10 writing image sha256:53c907054d95fe74b2d9c8a5e519228210c3ad5691ab5d56a3b64ef12f3e5223 done
10 naming to docker.io/library/todo-python-mongo-aca-api done
10 DONE 0.0s
ERROR: writing image ID file: open /tmp/azd-docker-build3555712615/imgId: no such file or directory

To Reproduce
Create a project from todo-python-mongo-aca template and try to build it.

Expected behavior
azd deploy works and docker build command completes without error.

Environment
Information on your environment:
* docker, ACA
* WSL2/Ubuntu dev box

Additional context

The specific problem is that the --iidfile parameter passed to docker build is pointing to a randomly assigned /tmp/azd folder that doesnt actually exist. Docker build command fails because the folder doesnt exist.

Metadata

Metadata

Assignees

No one assigned

    Labels

    acaAzure Container Apps

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions