- This is a bug report
Expected behavior
pull success
Actual behavior
- failed to register layer: ApplyLayer exit status 1 stdout: stderr: operation not permitted—[when enabled Use gRPC FUSE for file sharing]
- 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
- start docker desktop
- 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!
I was trying to pull mysql image with docker pull mysql
when my computer got struck. I had to restart my computer, but after restarting and trying to run mysql container with the command docker run -d mysql
I am getting the following error:
Unable to find image 'mysql:latest' locally
latest: Pulling from library/mysql
5040bd298390: Pull complete
55370df68315: Pull complete
fad5195d69cc: Pull complete
a1034a5fbbfc: Pull complete
17f3570b42ae: Pull complete
6bf4b16e5339: Pull complete
9700c9731729: Pull complete
f2fea9c5b632: Pull complete
2f8101f5336d: Extracting 935 B/935 B
0dc8f8a1031a: Download complete
a1b9627588c7: Download complete
docker: failed to register layer: rename /var/lib/docker/image/aufs/layerdb/tmp/layer-721305262 /var/lib/docker/image/aufs/layerdb/sha256/06dd4f9415b3f89d3fb1138623cebb7245affc9410611552c6fb52b091587a2e: directory not empty.
See 'docker run --help'.
3b17db599af1654ddb251295a55988121350a88c8176db24ddfe44f9194edb0c
The docker version is 1.12.3
I reckon the aufs is corrupted because of restart, but I dont know how to fix. Please help. Thanks
asked Jan 30, 2017 at 3:43
Looks like there is a remnant from the past. Delete it:
rm -fr /var/lib/docker/image/aufs/layerdb/sha256/06dd4f9415b3f89d3fb1138623cebb7245affc9410611552c6fb52b091587a2e
Then try:
docker pull mysql
answered Jan 30, 2017 at 5:15
Nehal J WaniNehal J Wani
16k3 gold badges64 silver badges89 bronze badges
2
you need to clean build cache
you can run
docker image prune --all
also you can run
docker system prune --all
be careful last command will remove not used volumes
answered Jun 26, 2019 at 9:16
0
I had the same problem with Arch, I guess it happens sometime with a kernel update.
Just reboot, and if the problem is the same as me, it might fix
answered Mar 13, 2021 at 16:46
1
I had the same exact problem and apparently my Local Disk had ran out of storage. Check that first before clearing up stuff.
answered Jun 11, 2021 at 22:42
I had the same problem when my computer crashed while running
docker-compose pull
I tried @nehal-j-wani’s answer but it failed. I needed to delete all the files that had been created today.
find /var/lib/docker/image/overlay2/layerdb/sha256/* -type f -mtime 0 -exec rm {} ;
I was then able to run the pull command correctly.
answered Mar 22, 2022 at 11:37
1
I was in a similar situation (docker build interrupted): prune and removing individual folders would not do, restart of docker neither. After all that, deleting all image cache worked for me:
sudo docker service stop
sudo rm -r sudo rm -r /<YOUR PATH HERE>/docker/image/overlay2/layerdb/sha256
sudo docker service start
This is a last resort solution, as everything needs to be downloaded again.
answered Sep 19, 2022 at 15:39
JM LordJM Lord
1,0071 gold badge13 silver badges29 bronze badges
i run ‘sudo docker pull mysql’ in centOS, but the error occurs:
failed to register layer: Error processing tar file(exit status 2): panic: regexp: Compile((?:(?:[a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9])(?:(?:.(?:[a-zA-Z0-9]|[a-]*)[a-z0-9]+)+)?-9-]*[a-zA-Z0-9]))+)?(?::[0-9]+)?/)?[a-z0-9]+(?:(?:(?:[._]|__|[-]*)[a-z0-9]+)+)?(?:(?:/[a-z0-9]+(?:(?:(?:[._]|__|[-]*)[a-z0-9]+)+)?)+)?
): error parsing regexp: unexpected ): (?:(?:[a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9])(?:(?:.(?:[a-zA-Z0-9]|[a-]*)[a-z0-9]+)+)?-9-]*[a-zA-Z0-9]))+)?(?::[0-9]+)?/)?[a-z0-9]+(?:(?:(?:[._]|__|[-]*)[a-z0-9]+)+)?(?:(?:/[a-z0-9]+(?:(?:(?:[._]|__|[-]*)[a-z0-9]+)+)?)+)?
detail console pic
asked Oct 7, 2020 at 5:44
Load 7 more related questions
Show fewer related questions
docker: Error response from daemon: OCI runtime create failed: container_ linux. Go:380 error
Docker fails to run after installing mysql5.7, and reports error: OCI runtime create failed
Pull mysql5.7 on docker is OK
execute the code and report an error
docker run -p 3306:3306 --name mysql
-v /mydata/mysql/log:/var/log/mysql
-v /mydata/mysql/data:/var/lib/mysql
-v /mydata/mysql/conf:/etc/mysql
-e MYSQL_ ROOT_ PASSWORD=root
-d mysql:5.7
cd to /mydata/mysql/conf and finds that it is not mounted correctly, and there is no /etc/mysql file path
Reason for error: because of the compatibility between Linux and docker version, the docker version needs to be degraded or reinstalled
There are two solutions:
- Reinstall the specified version of docker
- Downgrade docker to the specified version
The first method: uninstall and reinstall:
//Step 1: Uninstall docker
//List the packages downloaded by docker
sudo yum list installed | grep docker
//remove all the above related installed packages sudo yum -y remove "above show related packages"
sudo yum -y remove docker-ce.x86_64
sudo yum -y remove docker-ce-cli.x86_64
// Remove related images and containers
sudo rm -rf /var/lib/docker
sudo yum remove docker
docker-client
docker-client-latest
docker-common
docker-latest
docker-latest-logrotate
docker-logrotate
docker-selinux
docker-engine-selinux
docker-engine
//Test for deletion
docker -v
// Step 2: reinstall the specified version of docker
// Install some necessary system tools.
sudo yum install -y yum-utils device-mapper-persistent-data lvm2
// Add software source information: sudo yum-config -y
sudo yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
//Update the yum cache.
sudo yum makecache fast
//View the available versions of Docker-ce: sudo yum list docker-ce
yum list docker-ce --showduplicates | sort -r
// If you need to show only table versions, you can turn off the list for test versions: yum list
sudo yum-config-manager --enable docker-ce-edge
sudo yum-config-manager --enable docker-ce-test
//Update the yum package index
yum makecache fast
//Install the specified version of docker-ce: sudo yum install -y docker-ce
sudo yum install -y docker-ce-17.03.2.ce-1.el7.centos
// Error: If the installation of the specified version of docker shows that the specified version of the docker-ce-selinux dependency package needs to be installed, please install.
yum install -y https://download.docker.com/linux/centos/7/x86_64/stable/Packages/docker-ce-selinux-17.03.2.ce-1.el7.centos.noarch.rpm
Then pull MySQL again
docker pull mysql:5.7
The second method: downgrade docker to the specified version:
//stop docker
sudo systemctl stop docker
//Enter the downgrade command
yum downgrade --setopt=obsoletes=0 -y docker-ce-17.03.2.ce-1.el7 docker-ce-selinux-17.03.2.ce-1.el7 containerd.io
//Checking the docker version
docker -v
Recreate container and start
docker run -p 3306:3306 --name mysql
-v /mydata/mysql/log:/var/log/mysql
-v /mydata/mysql/data:/var/lib/mysql
-v /mydata/mysql/conf:/etc/mysql
-e MYSQL_ ROOT_ PASSWORD=root
-d mysql:5.7
Read More:
Loading