{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/10180","labels_url":"https://api.github.com/repos/docker/docker/issues/10180/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/10180/comments","events_url":"https://api.github.com/repos/docker/docker/issues/10180/events","html_url":"https://github.com/docker/docker/issues/10180","id":54751914,"number":10180,"title":"overlayfs fails to run container with a strange file checksum error","user":{"login":"tatsuya6502","id":159403,"avatar_url":"https://avatars.githubusercontent.com/u/159403?v=3","gravatar_id":"","url":"https://api.github.com/users/tatsuya6502","html_url":"https://github.com/tatsuya6502","followers_url":"https://api.github.com/users/tatsuya6502/followers","following_url":"https://api.github.com/users/tatsuya6502/following{/other_user}","gists_url":"https://api.github.com/users/tatsuya6502/gists{/gist_id}","starred_url":"https://api.github.com/users/tatsuya6502/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tatsuya6502/subscriptions","organizations_url":"https://api.github.com/users/tatsuya6502/orgs","repos_url":"https://api.github.com/users/tatsuya6502/repos","events_url":"https://api.github.com/users/tatsuya6502/events{/privacy}","received_events_url":"https://api.github.com/users/tatsuya6502/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/docker/labels/area/kernel","name":"area/kernel","color":"E3ACEF"},{"url":"https://api.github.com/repos/docker/docker/labels/area/storage/overlay","name":"area/storage/overlay","color":"fbca04"},{"url":"https://api.github.com/repos/docker/docker/labels/exp/expert","name":"exp/expert","color":"3B8686"},{"url":"https://api.github.com/repos/docker/docker/labels/kind/bug","name":"kind/bug","color":"FF8C94"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":35,"created_at":"2015-01-19T11:16:14Z","updated_at":"2015-12-13T18:18:22Z","closed_at":null,"body":"I started to use \"overlay\" driver today and seeing odd behaviors in my containers (CentOS 6).\r\n\r\n1. `yum install <pkg>` in Dockerfile always fails, but running it again in the same container always succeeds.\r\n2. `tail -f <file>` doesn't show appended contents\r\n\r\nFor 1, this simple Dockerfile always fails at second `yum install` (for perl)\r\n\r\n```\r\nFROM centos:centos6\r\n\r\nRUN yum install -y sudo\r\nRUN yum install -y perl\r\n```\r\n\r\nwith this error:\r\n\r\n```\r\nStep 2 : RUN yum install -y perl\r\n ---> Running in 21669e152088\r\n...\r\nRpmdb checksum is invalid: dCDPT(pkg checksums): perl-version.x86_64 3:0.77-136.el6_6.1 - u\r\n\r\nINFO[0018] The command [/bin/sh -c yum install -y perl] returned a non-zero code: 1\r\n```\r\n\r\nHowever, running the same command twice in **the same container** always succeeds.\r\n\r\n```\r\nFROM centos:centos6\r\n\r\nRUN yum install -y sudo \r\nRUN (yum install -y perl || yum install -y perl)\r\n```\r\n\r\n```\r\nStep 2 : RUN (yum install -y perl || yum install -y perl)\r\n ---> Running in 5bf1177b4437\r\n...\r\n\r\nRpmdb checksum is invalid: dCDPT(pkg checksums): perl-version.x86_64 3:0.77-136.el6_6.1 - u\r\n  Installing : 4:perl-5.10.1-136.el6_6.1.x86_64                             6/6\r\nLoaded plugins: fastestmirror\r\nSetting up Install Process\r\nLoading mirror speeds from cached hostfile\r\n * base: mirror.vastspace.net\r\n * extras: mirror.vastspace.net\r\n * updates: mirror.vastspace.net\r\nPackage 4:perl-5.10.1-136.el6_6.1.x86_64 already installed and latest version\r\nNothing to do\r\n ---> 2671034175e9\r\nRemoving intermediate container 5bf1177b4437\r\nSuccessfully built 2671034175e9\r\n```\r\n\r\nEven though I change `perl` to something else, I get the same behavior.\r\n\r\n\r\nFor 2, I noticed that doing `tail -f <application.log>` first shows last 10 lines of the log file, then it doesn't show any appended contents. If I press Ctrl+C and redo, it will show the most recent contents.\r\n\r\nI have only tried the official centos:centos6 image so far, and the above behavior is 100% reproducible. I didn't try other images.\r\n\r\n\r\n**Docker Host:**\r\n\r\nCoreOS latest alpha with ext4 root file system and \"overlay\" driver. I'm running it on EC2, and recreated it once but the problem persists.\r\n\r\n```\r\ncore@core-01 ~ $ cat /etc/os-release\r\nNAME=CoreOS\r\nID=coreos\r\nVERSION=561.0.0\r\nVERSION_ID=561.0.0\r\nBUILD_ID=\r\nPRETTY_NAME=\"CoreOS 561.0.0\"\r\nANSI_COLOR=\"1;32\"\r\nHOME_URL=\"https://coreos.com/\"\r\nBUG_REPORT_URL=\"https://github.com/coreos/bugs/issues\"\r\n```\r\n\r\n**Docker Version and Info:**\r\n\r\n```\r\ncore@core-01 ~ $ docker --version\r\nDocker version 1.4.1, build 5bc2ff8-dirty\r\n\r\ncore@core-01 ~ $ docker info\r\nContainers: 1\r\nImages: 4\r\nStorage Driver: overlay\r\nExecution Driver: native-0.2\r\nKernel Version: 3.18.2\r\nOperating System: CoreOS 561.0.0\r\nCPUs: 1\r\nTotal Memory: 3.68 GiB\r\nName: core-01\r\nID: TM2L:NIZI:CUGT:EUKX:ACP3:EOFX:YQVR:CTL7:R7L2:ILQF:6E3H:HAHQ\r\n```\r\n\r\n**Kernel Config:**\r\n\r\n```\r\ncore@core-01 ~ $ wget https://raw.githubusercontent.com/docker/docker/master/contrib/check-config.sh\r\n...\r\n2015-01-19 11:09:00 (133 MB/s) - 'check-config.sh' saved [4476/4476]\r\n\r\ncore@core-01 ~ $ chmod a+x check-config.sh\r\ncore@core-01 ~ $ ./check-config.sh\r\ninfo: reading kernel config from /proc/config.gz ...\r\n\r\nGenerally Necessary:\r\n- cgroup hierarchy: properly mounted [/sys/fs/cgroup]\r\n- CONFIG_NAMESPACES: enabled\r\n- CONFIG_NET_NS: enabled\r\n- CONFIG_PID_NS: enabled\r\n- CONFIG_IPC_NS: enabled\r\n- CONFIG_UTS_NS: enabled\r\n- CONFIG_DEVPTS_MULTIPLE_INSTANCES: enabled\r\n- CONFIG_CGROUPS: enabled\r\n- CONFIG_CGROUP_CPUACCT: enabled\r\n- CONFIG_CGROUP_DEVICE: enabled\r\n- CONFIG_CGROUP_FREEZER: enabled\r\n- CONFIG_CGROUP_SCHED: enabled\r\n- CONFIG_MACVLAN: enabled\r\n- CONFIG_VETH: enabled\r\n- CONFIG_BRIDGE: enabled\r\n- CONFIG_NF_NAT_IPV4: enabled\r\n- CONFIG_IP_NF_FILTER: enabled\r\n- CONFIG_IP_NF_TARGET_MASQUERADE: enabled\r\n- CONFIG_NETFILTER_XT_MATCH_ADDRTYPE: enabled\r\n- CONFIG_NETFILTER_XT_MATCH_CONNTRACK: enabled\r\n- CONFIG_NF_NAT: enabled\r\n- CONFIG_NF_NAT_NEEDED: enabled\r\n- CONFIG_POSIX_MQUEUE: enabled\r\n\r\nOptional Features:\r\n- CONFIG_MEMCG_SWAP: enabled\r\n- CONFIG_RESOURCE_COUNTERS: enabled\r\n- CONFIG_CGROUP_PERF: enabled\r\n- Storage Drivers:\r\n  - \"aufs\":\r\n    - CONFIG_AUFS_FS: missing\r\n    - CONFIG_EXT4_FS_POSIX_ACL: enabled\r\n    - CONFIG_EXT4_FS_SECURITY: enabled\r\n  - \"btrfs\":\r\n    - CONFIG_BTRFS_FS: enabled\r\n  - \"devicemapper\":\r\n    - CONFIG_BLK_DEV_DM: enabled\r\n    - CONFIG_DM_THIN_PROVISIONING: enabled\r\n    - CONFIG_EXT4_FS: enabled\r\n    - CONFIG_EXT4_FS_POSIX_ACL: enabled\r\n    - CONFIG_EXT4_FS_SECURITY: enabled\r\n  - \"overlay\":\r\n    - CONFIG_OVERLAY_FS: enabled\r\n```"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/164285370","html_url":"https://github.com/docker/docker/issues/10180#issuecomment-164285370","issue_url":"https://api.github.com/repos/docker/docker/issues/10180","id":164285370,"user":{"login":"oszi","id":10591074,"avatar_url":"https://avatars.githubusercontent.com/u/10591074?v=3","gravatar_id":"","url":"https://api.github.com/users/oszi","html_url":"https://github.com/oszi","followers_url":"https://api.github.com/users/oszi/followers","following_url":"https://api.github.com/users/oszi/following{/other_user}","gists_url":"https://api.github.com/users/oszi/gists{/gist_id}","starred_url":"https://api.github.com/users/oszi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oszi/subscriptions","organizations_url":"https://api.github.com/users/oszi/orgs","repos_url":"https://api.github.com/users/oszi/repos","events_url":"https://api.github.com/users/oszi/events{/privacy}","received_events_url":"https://api.github.com/users/oszi/received_events","type":"User","site_admin":false},"created_at":"2015-12-13T18:18:22Z","updated_at":"2015-12-13T18:18:22Z","body":"This is fixed  in `yum-utils-1.1.31-33.el7` which is still not stable...\r\nSee: https://bugzilla.redhat.com/show_bug.cgi?id=1213602"}}