You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am Not able to run docker build command when my docker file is located in /tmp folder. But when i move the same file to other locations, I am able to build and run it. I am getting the following error when i try "docker build -t myapp ." in tmp folder :
ERROR: failed to solve: failed to read dockerfile: open /var/snap/docker/common/var-lib-docker/tmp/buildkit-mount4060162467/Dockerfile: no such file or directory
Reproduce
Goto tmp folder
cd /tmp
Create a Docker file
docker build -t myapp .
Expected behavior
BUILD SUCCESSFUL
docker version
Client:
Version: 24.0.5
API version: 1.43
Go version: go1.20.8
Git commit: ced0996
Built: Sat Oct 7 00:14:00 2023
OS/Arch: linux/amd64
Context: default
Server:
Engine:
Version: 24.0.5
API version: 1.43 (minimum version 1.12)
Go version: go1.20.8
Git commit: a61e2b4
Built: Sat Oct 7 00:14:30 2023
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: v1.6.21
GitCommit: 3dce8eb055cbb6872793272b4f20ed16117344f8
runc:
Version: 1.1.7
GitCommit:
docker-init:
Version: 0.19.0
GitCommit: de40ad0
Description
I am Not able to run docker build command when my docker file is located in /tmp folder. But when i move the same file to other locations, I am able to build and run it. I am getting the following error when i try "docker build -t myapp ." in tmp folder :
ERROR: failed to solve: failed to read dockerfile: open /var/snap/docker/common/var-lib-docker/tmp/buildkit-mount4060162467/Dockerfile: no such file or directory
Reproduce
Goto tmp folder
cd /tmp
Create a Docker file
docker build -t myapp .
Expected behavior
BUILD SUCCESSFUL
docker version
Client: Version: 24.0.5 API version: 1.43 Go version: go1.20.8 Git commit: ced0996 Built: Sat Oct 7 00:14:00 2023 OS/Arch: linux/amd64 Context: default Server: Engine: Version: 24.0.5 API version: 1.43 (minimum version 1.12) Go version: go1.20.8 Git commit: a61e2b4 Built: Sat Oct 7 00:14:30 2023 OS/Arch: linux/amd64 Experimental: false containerd: Version: v1.6.21 GitCommit: 3dce8eb055cbb6872793272b4f20ed16117344f8 runc: Version: 1.1.7 GitCommit: docker-init: Version: 0.19.0 GitCommit: de40ad0
docker info
Diagnostics ID
cc1f6cb1-4ff4-4292-b4d5-cd2851439aaa
Additional Info
No response
The text was updated successfully, but these errors were encountered: