diff command returns incorrect information about a "deleted" folder
Description docker diff return kind of deleted for not deleted folder
Steps to reproduce the issue:
- setup GKE cluster with ubuntu OS. and run:
kubectl create deployment nginx --image=nginx - connect to a node with a pod from nginx deployment and run
docker diff <container-id>. - check that folder "/run/secrets" indeed exists with
docker exec <container-id> ls /run
Describe the results you received:
docker ps | grep nginx
acd19f31f523 nginx@sha256:4ffd9758ea9ea360fd87d0cee7a2d1cf9dba630bb57ca36b3108dcd3708dc189 "nginx -g 'daemon ..." 39 seconds ago Up 39 seconds k8s_nginx_nginx-7d7cbfc4f-p9sz8_default_b8d0f0a1-9ad5-11e8-8594-42010a8000bd_0 7f6432b557c6 gcr.io/google_containers/pause-amd64:3.0 "/pause" 41 seconds ago Up 40 seconds k8s_POD_nginx-7d7cbfc4f-p9sz8_default_b8d0f0a1-9ad5-11e8-8594-42010a8000bd_0
docker diff acd19f31f523
C /run A /run/nginx.pid D /run/secrets A /run/secrets/kubernetes.io A /run/secrets/kubernetes.io/serviceaccount C /var/cache/nginx D /var/cache/nginx/client_temp D /var/cache/nginx/fastcgi_temp D /var/cache/nginx/proxy_temp D /var/cache/nginx/scgi_temp D /var/cache/nginx/uwsgi_temp
docker exec acd19f31f523 ls /run
lock nginx.pid secrets utmp
Describe the results you expected:
docker diff acd19f31f523 should return
C /run/secrets
Additional information you deem important (e.g. issue happens only occasionally):
Output of docker version:
Client:
Version: 17.03.2-ce
API version: 1.27
Go version: go1.6.2
Git commit: f5ec1e2
Built: Tue Nov 21 16:41:54 2017
OS/Arch: linux/amd64
Server:
Version: 17.03.2-ce
API version: 1.27 (minimum version 1.12)
Go version: go1.6.2
Git commit: f5ec1e2
Built: Tue Nov 21 16:41:54 2017
OS/Arch: linux/amd64
Experimental: false
Output of docker info:
Containers: 24
Running: 24
Paused: 0
Stopped: 0
Images: 17
Server Version: 17.03.2-ce
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host macvlan null overlay
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 4ab9917febca54791c5f071a9d1f404867857fcc
runc version: 54296cf40ad8143b62dbcaa1d90e520a2136ddfe
init version: N/A (expected: 949e6facb77383876aeff8a6944dde66b3089574)
Security Options:
apparmor
seccomp
Profile: default
Kernel Version: 4.13.0-1015-gcp
Operating System: Ubuntu 16.04.4 LTS
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 7.298 GiB
Name: gke-cluster-1-default-pool-1d7b9b1a-f2d0
ID: 4OQB:4755:R3WN:LXHS:M5OZ:BFHH:M2AV:XSCI:Q7HA:3HDD:5KX6:YX2Y
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Experimental: false
Insecure Registries:
10.0.0.0/8
127.0.0.0/8
Registry Mirrors:
https://mirror.gcr.io/
Live Restore Enabled: false
WARNING: No swap limit support
Additional environment details (AWS, VirtualBox, physical, etc.):
kubectl version
Client Version: version.Info{Major:"1", Minor:"9", GitVersion:"v1.9.7", GitCommit:"dd5e1a2978fd0b97d9b78e1564398aeea7e7fe92", GitTreeState:"clean", BuildDate:"2018-04-19T00:05:56Z", GoVersion:"go1.9.3", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"9+", GitVersion:"v1.9.7-gke.3", GitCommit:"9b5b719c5f295c99de68ffb5b63101b0e0175376", GitTreeState:"clean", BuildDate:"2018-05-31T18:32:23Z", GoVersion:"go1.9.3b4", Compiler:"gc", Platform:"linux/amd64"}
Looks like a duplicate of https://github.com/moby/moby/issues/37880 - can you still reproduce this on a current version of Docker? Docker 17.03 reached EOL in June 2017, and hasn't been maintained since
GKE have a bug (https://status.cloud.google.com//incident/container-engine/18005?_ga=2.110640450.-619074765.1541925844) so i can't create new cluster with newer version of kubernetes and docker... but the google cloud shell have new version of docker, with the same problem:
docker run -dit --rm --name test busybox sh -c 'mkdir /foo && exec sh' docker diff test
D /foo
docker version
Client:
Version: 18.03.1-ce
API version: 1.37
Go version: go1.9.5
Git commit: 9ee9f40
Built: Thu Apr 26 07:17:14 2018
OS/Arch: linux/amd64
Experimental: false
Orchestrator: swarm
Server:
Engine:
Version: 18.03.1-ce
API version: 1.37 (minimum version 1.12)
Go version: go1.9.5
Git commit: 9ee9f40
Built: Thu Apr 26 07:15:24 2018
OS/Arch: linux/amd64
Experimental: false
docker info
Containers: 1
Running: 1
Paused: 0
Stopped: 0
Images: 1
Server Version: 18.03.1-ce
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 773c489c9c1b21a6d78b5c538cd395416ec50f88
runc version: 4fc53a81fb7c994640722ac585fa9ca548971871
init version: 949e6fa
Security Options:
apparmor
seccomp
Profile: default
Kernel Version: 4.14.33+
Operating System: Debian GNU/Linux 9 (stretch) (containerized)
OSType: linux
Architecture: x86_64
CPUs: 1
Total Memory: 1.656GiB
Name: cs-6000-devshell-vm-adcb2c63-99ab-4b7c-bd89-eecfea3d2d8e
ID: QTYJ:YNHS:E3LL:EYVQ:GTVX:IX7S:OXTL:UGSO:LO3J:AHQM:DSEU:ITAS
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Registry Mirrors:
https://eu-mirror.gcr.io/
Live Restore Enabled: false
WARNING: bridge-nf-call-iptables is disabled
WARNING: bridge-nf-call-ip6tables is disabled
uname -a
Linux cs-6000-devshell-vm-adcb2c63-99ab-4b7c-bd89-eecfea3d2d8e 4.14.33+ #1 SMP Sat Aug 11 08:05:16 PDT 2018 x86_64 GNU/Linux
Wondering if it's related to the native differ; https://github.com/moby/moby/pull/38111
ping @dmcgowan @tonistiigi @AkihiroSuda
looks like this went stale; closing