{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/10180","repository_url":"https://api.github.com/repos/docker/docker","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":[{"id":102727640,"url":"https://api.github.com/repos/docker/docker/labels/area/kernel","name":"area/kernel","color":"fbca04","default":false},{"id":149275894,"url":"https://api.github.com/repos/docker/docker/labels/area/storage/overlay","name":"area/storage/overlay","color":"fbca04","default":false},{"id":179224743,"url":"https://api.github.com/repos/docker/docker/labels/exp/expert","name":"exp/expert","color":"3B8686","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":74,"created_at":"2015-01-19T11:16:14Z","updated_at":"2016-12-23T07:36:28Z","closed_at":"2016-08-16T10:13:46Z","body":"I started to use \"overlay\" driver today and seeing odd behaviors in my containers (CentOS 6).\n1. `yum install <pkg>` in Dockerfile always fails, but running it again in the same container always succeeds.\n2. `tail -f <file>` doesn't show appended contents\n\nFor 1, this simple Dockerfile always fails at second `yum install` (for perl)\n\n```\nFROM centos:centos6\n\nRUN yum install -y sudo\nRUN yum install -y perl\n```\n\nwith this error:\n\n```\nStep 2 : RUN yum install -y perl\n ---> Running in 21669e152088\n...\nRpmdb checksum is invalid: dCDPT(pkg checksums): perl-version.x86_64 3:0.77-136.el6_6.1 - u\n\nINFO[0018] The command [/bin/sh -c yum install -y perl] returned a non-zero code: 1\n```\n\nHowever, running the same command twice in **the same container** always succeeds.\n\n```\nFROM centos:centos6\n\nRUN yum install -y sudo \nRUN (yum install -y perl || yum install -y perl)\n```\n\n```\nStep 2 : RUN (yum install -y perl || yum install -y perl)\n ---> Running in 5bf1177b4437\n...\n\nRpmdb checksum is invalid: dCDPT(pkg checksums): perl-version.x86_64 3:0.77-136.el6_6.1 - u\n  Installing : 4:perl-5.10.1-136.el6_6.1.x86_64                             6/6\nLoaded plugins: fastestmirror\nSetting up Install Process\nLoading mirror speeds from cached hostfile\n * base: mirror.vastspace.net\n * extras: mirror.vastspace.net\n * updates: mirror.vastspace.net\nPackage 4:perl-5.10.1-136.el6_6.1.x86_64 already installed and latest version\nNothing to do\n ---> 2671034175e9\nRemoving intermediate container 5bf1177b4437\nSuccessfully built 2671034175e9\n```\n\nEven though I change `perl` to something else, I get the same behavior.\n\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.\n\nI have only tried the official centos:centos6 image so far, and the above behavior is 100% reproducible. I didn't try other images.\n\n**Docker Host:**\n\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.\n\n```\ncore@core-01 ~ $ cat /etc/os-release\nNAME=CoreOS\nID=coreos\nVERSION=561.0.0\nVERSION_ID=561.0.0\nBUILD_ID=\nPRETTY_NAME=\"CoreOS 561.0.0\"\nANSI_COLOR=\"1;32\"\nHOME_URL=\"https://coreos.com/\"\nBUG_REPORT_URL=\"https://github.com/coreos/bugs/issues\"\n```\n\n**Docker Version and Info:**\n\n```\ncore@core-01 ~ $ docker --version\nDocker version 1.4.1, build 5bc2ff8-dirty\n\ncore@core-01 ~ $ docker info\nContainers: 1\nImages: 4\nStorage Driver: overlay\nExecution Driver: native-0.2\nKernel Version: 3.18.2\nOperating System: CoreOS 561.0.0\nCPUs: 1\nTotal Memory: 3.68 GiB\nName: core-01\nID: TM2L:NIZI:CUGT:EUKX:ACP3:EOFX:YQVR:CTL7:R7L2:ILQF:6E3H:HAHQ\n```\n\n**Kernel Config:**\n\n```\ncore@core-01 ~ $ wget https://raw.githubusercontent.com/docker/docker/master/contrib/check-config.sh\n...\n2015-01-19 11:09:00 (133 MB/s) - 'check-config.sh' saved [4476/4476]\n\ncore@core-01 ~ $ chmod a+x check-config.sh\ncore@core-01 ~ $ ./check-config.sh\ninfo: reading kernel config from /proc/config.gz ...\n\nGenerally Necessary:\n- cgroup hierarchy: properly mounted [/sys/fs/cgroup]\n- CONFIG_NAMESPACES: enabled\n- CONFIG_NET_NS: enabled\n- CONFIG_PID_NS: enabled\n- CONFIG_IPC_NS: enabled\n- CONFIG_UTS_NS: enabled\n- CONFIG_DEVPTS_MULTIPLE_INSTANCES: enabled\n- CONFIG_CGROUPS: enabled\n- CONFIG_CGROUP_CPUACCT: enabled\n- CONFIG_CGROUP_DEVICE: enabled\n- CONFIG_CGROUP_FREEZER: enabled\n- CONFIG_CGROUP_SCHED: enabled\n- CONFIG_MACVLAN: enabled\n- CONFIG_VETH: enabled\n- CONFIG_BRIDGE: enabled\n- CONFIG_NF_NAT_IPV4: enabled\n- CONFIG_IP_NF_FILTER: enabled\n- CONFIG_IP_NF_TARGET_MASQUERADE: enabled\n- CONFIG_NETFILTER_XT_MATCH_ADDRTYPE: enabled\n- CONFIG_NETFILTER_XT_MATCH_CONNTRACK: enabled\n- CONFIG_NF_NAT: enabled\n- CONFIG_NF_NAT_NEEDED: enabled\n- CONFIG_POSIX_MQUEUE: enabled\n\nOptional Features:\n- CONFIG_MEMCG_SWAP: enabled\n- CONFIG_RESOURCE_COUNTERS: enabled\n- CONFIG_CGROUP_PERF: enabled\n- Storage Drivers:\n  - \"aufs\":\n    - CONFIG_AUFS_FS: missing\n    - CONFIG_EXT4_FS_POSIX_ACL: enabled\n    - CONFIG_EXT4_FS_SECURITY: enabled\n  - \"btrfs\":\n    - CONFIG_BTRFS_FS: enabled\n  - \"devicemapper\":\n    - CONFIG_BLK_DEV_DM: enabled\n    - CONFIG_DM_THIN_PROVISIONING: enabled\n    - CONFIG_EXT4_FS: enabled\n    - CONFIG_EXT4_FS_POSIX_ACL: enabled\n    - CONFIG_EXT4_FS_SECURITY: enabled\n  - \"overlay\":\n    - CONFIG_OVERLAY_FS: enabled\n```\n"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/268951477","html_url":"https://github.com/docker/docker/issues/10180#issuecomment-268951477","issue_url":"https://api.github.com/repos/docker/docker/issues/10180","id":268951477,"user":{"login":"jamshid","id":8549,"avatar_url":"https://avatars.githubusercontent.com/u/8549?v=3","gravatar_id":"","url":"https://api.github.com/users/jamshid","html_url":"https://github.com/jamshid","followers_url":"https://api.github.com/users/jamshid/followers","following_url":"https://api.github.com/users/jamshid/following{/other_user}","gists_url":"https://api.github.com/users/jamshid/gists{/gist_id}","starred_url":"https://api.github.com/users/jamshid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamshid/subscriptions","organizations_url":"https://api.github.com/users/jamshid/orgs","repos_url":"https://api.github.com/users/jamshid/repos","events_url":"https://api.github.com/users/jamshid/events{/privacy}","received_events_url":"https://api.github.com/users/jamshid/received_events","type":"User","site_admin":false},"created_at":"2016-12-23T07:36:27Z","updated_at":"2016-12-23T07:36:27Z","body":"@jperrin did something change recently with the centos builds? I swear the \"yum\" checksum problem with overlay2 was fixed before I made a recent docker pull of centos. \r\n\r\nMaybe yum-utils used to include yum-plugin-ovl but it no longer does?\r\n\r\nThis is necessary for overlayfs to work, please add yum-plugin-ovl back in. I guess I should file another bug please let me know what project.\r\n\r\n```\r\n# docker info\r\nContainers: 48\r\n Running: 38\r\n Paused: 0\r\n Stopped: 10\r\nImages: 81\r\nServer Version: 1.12.4\r\nStorage Driver: overlay2\r\n Backing Filesystem: extfs\r\nLogging Driver: json-file\r\nCgroup Driver: cgroupfs\r\nPlugins:\r\n Volume: local\r\n Network: bridge null host overlay\r\nSwarm: inactive\r\nRuntimes: runc\r\nDefault Runtime: runc\r\nSecurity Options: apparmor seccomp\r\nKernel Version: 4.4.0-53-generic\r\nOperating System: Ubuntu 16.04.1 LTS\r\nOSType: linux\r\nArchitecture: x86_64\r\nCPUs: 4\r\nTotal Memory: 31.31 GiB\r\nName: 63\r\nID: AUQE:OS5D:5RNW:SBMA:ZMSP:M5PG:7URM:5XTE:CSN2:4JVM:5C6E:JPYG\r\nDocker Root Dir: /var/lib/docker\r\nDebug Mode (client): false\r\nDebug Mode (server): false\r\nRegistry: https://index.docker.io/v1/\r\nWARNING: No swap limit support\r\nLabels:\r\n provider=generic\r\nInsecure Registries:\r\n 127.0.0.0/8\r\n```\r\n```\r\n# cat | docker build -\r\nFROM centos:7.2.1511\r\nRUN yum update -y && yum install -y curl which initscripts net-tools bind-utils\r\nRUN yum install -y openssh-server\r\n\r\nSending build context to Docker daemon 2.048 kB\r\nStep 1 : FROM centos:7.2.1511\r\n7.2.1511: Pulling from library/centos\r\na2392627bec4: Pull complete \r\nDigest: sha256:2632572665fc957592ae2332662c11a380fdb869eec172eaa0fa25d673a82ac6\r\nStatus: Downloaded newer image for centos:7.2.1511\r\n ---> feac5e0dfdb2\r\nStep 2 : RUN yum update -y && yum install -y curl which initscripts net-tools bind-utils\r\n...\r\nStep 3 : RUN yum install -y openssh-server\r\nRunning transaction\r\n  Installing : fipscheck-lib-1.4.1-5.el7.x86_64                             1/5 \r\n  Installing : fipscheck-1.4.1-5.el7.x86_64                                 2/5 \r\n  Installing : openssh-6.6.1p1-31.el7.x86_64                                3/5 \r\n  Installing : tcp_wrappers-libs-7.6-77.el7.x86_64                          4/5 \r\n  Installing : openssh-server-6.6.1p1-31.el7.x86_64                         5/5\r\n\r\nRpmdb checksum is invalid: dCDPT(pkg checksums): openssh.x86_64 0:6.6.1p1-31.el7 - u\r\n \r\nThe command '/bin/sh -c yum install -y openssh-server' returned a non-zero code: 1\r\n```"}}
{"actor":{"display_login":"jamshid"}}