docker / for-linux

Docker Engine for Linux
https://docs.docker.com/engine/installation/
754 stars 85 forks source link

docker pull mysql/mysql-server:5.7 failed to register layer #1342

Open solo1020 opened 2 years ago

solo1020 commented 2 years ago

Expected behavior

pull success

Actual behavior

  1. failed to register layer: ApplyLayer exit status 1 stdout: stderr: operation not permitted---[when enabled Use gRPC FUSE for file sharing]
  2. failed to register layer: ApplyLayer exit status 1 stdout: stderr: function not implemented---[when disabled Use gRPC FUSE for file sharing]

Steps to reproduce the behavior

  1. start docker desktop
  2. pull in terminal: sudo docker pull mysql/mysql-server:5.7

output in terminal:

sudo docker pull mysql/mysql-server:5.7

5.7: Pulling from mysql/mysql-server
b8aa102ba20a: Extracting  54.49MB/54.49MB
2ff679d72626: Download complete 
ea45979059fe: Download complete 
526a484cb892: Download complete 
4436dc023066: Download complete 
98b382a658b6: Download complete 
17d3acf6ac1e: Download complete 
c5ce8d5cf40e: Download complete 
5.7: Pulling from mysql/mysql-server
b8aa102ba20a: Extracting  4.456MB/54.49MB
b8aa102ba20a: Extracting  54.49MB/54.49MB
ea45979059fe: Downloading  56.02MB/77.41MB
ea45979059fe: Download complete 
4436dc023066: Download complete 
98b382a658b6: Download complete 
17d3acf6ac1e: Download complete 
c5ce8d5cf40e: Download complete 

5.7: Pulling from mysql/mysql-server
b8aa102ba20a: Extracting  54.49MB/54.49MB
2ff679d72626: Download complete 
ea45979059fe: Download complete 
526a484cb892: Download complete 
4436dc023066: Download complete 
98b382a658b6: Download complete 
17d3acf6ac1e: Download complete 
c5ce8d5cf40e: Download complete 
failed to register layer: ApplyLayer exit status 1 stdout:  stderr: operation not permitted

Output of docker version:

Client:
 Cloud integration: v1.0.22
 Version:           20.10.11
 API version:       1.41
 Go version:        go1.16.10
 Git commit:        dea9396
 Built:             Thu Nov 18 00:36:09 2021
 OS/Arch:           darwin/amd64
 Context:           default
 Experimental:      true

Server: Docker Engine - Community
 Engine:
  Version:          20.10.11
  API version:      1.41 (minimum version 1.12)
  Go version:       go1.16.9
  Git commit:       847da18
  Built:            Thu Nov 18 00:35:39 2021
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.4.12
  GitCommit:        7b11cfaabd73bb80907dd23182b9347b4245eb5d
 runc:
  Version:          1.0.2
  GitCommit:        v1.0.2-0-g52b36a2
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

Output of docker info:

Client:
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc., v0.7.1)
  compose: Docker Compose (Docker Inc., v2.2.1)
  scan: Docker Scan (Docker Inc., v0.14.0)

Server:
 Containers: 0
  Running: 0
  Paused: 0
  Stopped: 0
 Images: 0
 Server Version: 20.10.11
 Storage Driver: vfs
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Cgroup Version: 2
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 io.containerd.runtime.v1.linux runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 7b11cfaabd73bb80907dd23182b9347b4245eb5d
 runc version: v1.0.2-0-g52b36a2
 init version: de40ad0
 Security Options:
  seccomp
   Profile: default
  cgroupns
 Kernel Version: 5.10.76-linuxkit
 Operating System: Docker Desktop
 OSType: linux
 Architecture: x86_64
 CPUs: 2
 Total Memory: 1.94GiB
 Name: docker-desktop
 ID: Y7M6:TRWB:6JYZ:RVGI:LKPI:YCIQ:4EGA:VX2D:PAFT:7EB3:GORO:LLDE
 Docker Root Dir: /host_mnt/Users/qz/workspace/env/docker
 Debug Mode: false
 HTTP Proxy: http.docker.internal:3128
 HTTPS Proxy: http.docker.internal:3128
 Registry: https://index.docker.io/v1/
 Labels:
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Registry Mirrors:
  https://docker.mirrors.ustc.edu.cn/
  http://hub-mirror.c.163.com/
  https://registry.docker-cn.com/
 Live Restore Enabled: false

OS macOS Monterey

disk

/dev/disk0 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *251.0 GB   disk0
   1:                        EFI ⁨EFI⁩                     314.6 MB   disk0s1
   2:                 Apple_APFS ⁨Container disk1⁩         250.7 GB   disk0s2

/dev/disk1 (synthesized):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      APFS Container Scheme -                      +250.7 GB   disk1
                                 Physical Store disk0s2
   1:                APFS Volume ⁨Macintosh HD - 数据⁩     56.5 GB    disk1s1
   2:                APFS Volume ⁨Preboot⁩                 272.0 MB   disk1s2
   3:                APFS Volume ⁨Recovery⁩                1.1 GB     disk1s3
   4:                APFS Volume ⁨VM⁩                      2.1 GB     disk1s4
   5:                APFS Volume ⁨Macintosh HD⁩            15.8 GB    disk1s5
   6:              APFS Snapshot ⁨com.apple.os.update-...⁩ 15.8 GB    disk1s5s1

at first, I had this problem in macOS catalina, I searched in google and someone said it's catalina's privilege problem , so I update macOS to Monterey, the pull still failed

Thank a lot for your reply!

wambling commented 2 years ago

@solo1020 were you able to resolve this?

gauransh-dzip commented 1 year ago

@thaJeztah any update here?

thaJeztah commented 1 year ago

What version of Docker Desktop are you on currently? I'm not able to reproduce this;

docker pull mysql/mysql-server:5.7
5.7: Pulling from mysql/mysql-server
d70f3c0cccba: Pull complete
e7dc89aa39f7: Pull complete
76cc4215b650: Pull complete
25b0bb53e492: Pull complete
349b52643cc3: Pull complete
62ddcf4a4134: Pull complete
c91c597e717d: Pull complete
c7e93886e496: Pull complete
Digest: sha256:1178cdd375f758968cd834ac4057bae41307e64b7c69a9e145896e7b11f48064
Status: Downloaded newer image for mysql/mysql-server:5.7
docker.io/mysql/mysql-server:5.7