Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failed to solve: archive/tar: unknown file mode ?rwxr-xr-x #101

Open
AmokDev opened this issue Jun 16, 2024 · 2 comments
Open

failed to solve: archive/tar: unknown file mode ?rwxr-xr-x #101

AmokDev opened this issue Jun 16, 2024 · 2 comments

Comments

@AmokDev
Copy link

AmokDev commented Jun 16, 2024

when I try to build the application, this strange error appears

Build Log:

C:\Users\AmokDev\Desktop\teamgram-server>docker-compose up -d
time="2024-06-17T01:13:01+03:00" level=warning msg="C:\\Users\\AmokDev\\Desktop\\teamgram-server\\docker-compose.yaml: `version` is obsolete"
[+] Building 0.0s (0/0)  docker:default
2024/06/17 01:13:02 http2: server: error reading preface from client //./pipe/docker_engine: file has already been close[+] Building 33.1s (10/15)                                                                               docker:default
 => [teamgram internal] load build definition from Dockerfile                                                      0.0s
 => => transferring dockerfile: 307B                                                                               0.0s
 => [teamgram internal] load metadata for docker.io/library/ubuntu:latest                                          2.0s
 => [teamgram internal] load metadata for docker.io/library/golang:1.19                                            2.0s
 => [teamgram auth] library/ubuntu:pull token for registry-1.docker.io                                             0.0s
 => [teamgram auth] library/golang:pull token for registry-1.docker.io                                             0.0s
 => [teamgram internal] load .dockerignore                                                                         0.0s
 => => transferring context: 2B                                                                                    0.0s
 => [teamgram builder 1/4] FROM docker.io/library/golang:1.19@sha256:3025bf670b8363ec9f1b4c4f27348e6d9b7fec607c47  0.0s
 => [teamgram stage-1 1/4] FROM docker.io/library/ubuntu:latest@sha256:e3f92abc0967a6c19d0dfa2d55838833e947b9d74e  0.0s
 => ERROR [teamgram internal] load build context                                                                  30.8s
 => => transferring context: 441.40MB                                                                             30.8s
 => CACHED [teamgram stage-1 2/4] WORKDIR /app                                                                     0.0s
------
 > [teamgram internal] load build context:
------
failed to solve: archive/tar: unknown file mode ?rwxr-xr-x

C:\Users\AmokDev\Desktop\teamgram-server>

Docker info:

C:\Users\AmokDev\Desktop\teamgram-server>docker info
Client:
 Version:    26.1.4
 Context:    desktop-linux
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.14.1-desktop.1
    Path:     C:\Program Files\Docker\cli-plugins\docker-buildx.exe
  compose: Docker Compose (Docker Inc.)
    Version:  v2.27.1-desktop.1
    Path:     C:\Program Files\Docker\cli-plugins\docker-compose.exe
  debug: Get a shell into any image or container (Docker Inc.)
    Version:  0.0.32
    Path:     C:\Program Files\Docker\cli-plugins\docker-debug.exe
  dev: Docker Dev Environments (Docker Inc.)
    Version:  v0.1.2
    Path:     C:\Program Files\Docker\cli-plugins\docker-dev.exe
  extension: Manages Docker extensions (Docker Inc.)
    Version:  v0.2.24
    Path:     C:\Program Files\Docker\cli-plugins\docker-extension.exe
  feedback: Provide feedback, right in your terminal! (Docker Inc.)
    Version:  v1.0.5
    Path:     C:\Program Files\Docker\cli-plugins\docker-feedback.exe
  init: Creates Docker-related starter files for your project (Docker Inc.)
    Version:  v1.2.0
    Path:     C:\Program Files\Docker\cli-plugins\docker-init.exe
  sbom: View the packaged-based Software Bill Of Materials (SBOM) for an image (Anchore Inc.)
    Version:  0.6.0
    Path:     C:\Program Files\Docker\cli-plugins\docker-sbom.exe
  scout: Docker Scout (Docker Inc.)
    Version:  v1.9.3
    Path:     C:\Program Files\Docker\cli-plugins\docker-scout.exe

Server:
 Containers: 7
  Running: 6
  Paused: 0
  Stopped: 1
 Images: 7
 Server Version: 26.1.4
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Using metacopy: false
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Cgroup Version: 1
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog
 Swarm: inactive
 Runtimes: runc io.containerd.runc.v2
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: d2d58213f83a351ca8f528a95fbd145f5654e957
 runc version: v1.1.12-0-g51d5e94
 init version: de40ad0
 Security Options:
  seccomp
   Profile: unconfined
 Kernel Version: 5.15.146.1-microsoft-standard-WSL2
 Operating System: Docker Desktop
 OSType: linux
 Architecture: x86_64
 CPUs: 8
 Total Memory: 6.744GiB
 Name: docker-desktop
 ID: b33d516a-f9c0-4be5-9510-33e0651ccdb6
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 HTTP Proxy: http.docker.internal:3128
 HTTPS Proxy: http.docker.internal:3128
 No Proxy: hubproxy.docker.internal
 Labels:
  com.docker.desktop.address=npipe://\\.\pipe\docker_cli
 Experimental: false
 Insecure Registries:
  hubproxy.docker.internal:5555
  127.0.0.0/8
 Live Restore Enabled: false

WARNING: No blkio throttle.read_bps_device support
WARNING: No blkio throttle.write_bps_device support
WARNING: No blkio throttle.read_iops_device support
WARNING: No blkio throttle.write_iops_device support
WARNING: daemon is not using the default seccomp profile

OS:

Windows 11 | 22h2
@wubenqi
Copy link
Contributor

wubenqi commented Jun 17, 2024

try use mac or linux

@AmokDev
Copy link
Author

AmokDev commented Jun 17, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants