{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/23471","repository_url":"https://api.github.com/repos/docker/docker","labels_url":"https://api.github.com/repos/docker/docker/issues/23471/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/23471/comments","events_url":"https://api.github.com/repos/docker/docker/issues/23471/events","html_url":"https://github.com/docker/docker/issues/23471","id":159817669,"number":23471,"title":"Docker always build failed in linux 4.6 kernel","user":{"login":"thuandt","id":847996,"avatar_url":"https://avatars.githubusercontent.com/u/847996?v=3","gravatar_id":"","url":"https://api.github.com/users/thuandt","html_url":"https://github.com/thuandt","followers_url":"https://api.github.com/users/thuandt/followers","following_url":"https://api.github.com/users/thuandt/following{/other_user}","gists_url":"https://api.github.com/users/thuandt/gists{/gist_id}","starred_url":"https://api.github.com/users/thuandt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thuandt/subscriptions","organizations_url":"https://api.github.com/users/thuandt/orgs","repos_url":"https://api.github.com/users/thuandt/repos","events_url":"https://api.github.com/users/thuandt/events{/privacy}","received_events_url":"https://api.github.com/users/thuandt/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/docker/labels/version/1.11","name":"version/1.11","color":"ededed"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":20,"created_at":"2016-06-12T09:19:55Z","updated_at":"2016-08-31T19:09:01Z","closed_at":null,"body":"\r\n**Output of `docker version`:**\r\n\r\n```\r\ndocker version\r\nClient:\r\n Version:      1.11.2\r\n API version:  1.23\r\n Go version:   go1.5.4\r\n Git commit:   b9f10c9\r\n Built:        Wed Jun  1 22:00:43 2016\r\n OS/Arch:      linux/amd64\r\n\r\nServer:\r\n Version:      1.11.2\r\n API version:  1.23\r\n Go version:   go1.5.4\r\n Git commit:   b9f10c9\r\n Built:        Wed Jun  1 22:00:43 2016\r\n OS/Arch:      linux/amd64\r\n\r\n```\r\n\r\n\r\n**Output of `docker info`:**\r\n\r\n```\r\ndocker info\r\nContainers: 0\r\n Running: 0\r\n Paused: 0\r\n Stopped: 0\r\nImages: 21\r\nServer Version: 1.11.2\r\nStorage Driver: btrfs\r\n Build Version: Btrfs v4.4\r\n Library Version: 101\r\nLogging Driver: json-file\r\nCgroup Driver: cgroupfs\r\nPlugins: \r\n Volume: local\r\n Network: bridge null host\r\nKernel Version: 4.6.2-xanmod4\r\nOperating System: Ubuntu 16.04 LTS\r\nOSType: linux\r\nArchitecture: x86_64\r\nCPUs: 4\r\nTotal Memory: 7.704 GiB\r\nName: mrtux-lappy\r\nID: CK52:GUBD:ORBO:BQD6:MORU:PBRV:2DYQ:H4KJ:5IYP:A2VL:MZGR:PFIW\r\nDocker Root Dir: /SSD/docker\r\nDebug mode (client): false\r\nDebug mode (server): false\r\nUsername: thuandt\r\nRegistry: https://index.docker.io/v1/\r\n\r\n```\r\n\r\n**Additional environment details:**\r\nIt's my laptop: Dell Vostro 3550.\r\nKernel parameters:\r\n```\r\n[Fri Jun 10 19:54:44 2016] -  microcode: microcode updated early to revision 0x29, date = 2013-06-12\r\n[Fri Jun 10 19:54:44 2016] -  Linux version 4.6.2-xanmod4 (root@BabyMachine) (gcc version 6.1.1 20160603 (Debian 6.1.1-5) ) #1 SMP Wed Jun 8 18:29:15 UTC 2016\r\n[Fri Jun 10 19:54:44 2016] -  Command line: BOOT_IMAGE=/boot/vmlinuz-4.6.2-xanmod4 root=UUID=bb9fc675-f03d-41a6-81b1-ba1d7865255b ro quiet splash intel_pstate=disable libahci.ignore_sss=1 pcie_aspm=force radeon.dpm=1 ipv6.disable=1 apparmor=1 security=apparmor cgroup_enable=memory swapaccount=1 vt.handoff=7\r\n\r\n```\r\n\r\n**Steps to reproduce the issue:**\r\n1. Create simple `Dockerfile` with content\r\n```\r\nFROM alpine:3.4\r\nRUN apk add --update ca-certificates && rm -rf /var/cache/apk/*\r\n```\r\n2. Build docker image for it\r\n```\r\ndocker --no-cache build -t test:test .\r\n```\r\n\r\n\r\n**Describe the results you received:**\r\n```\r\nSending build context to Docker daemon 51.88 MB\r\nStep 1 : FROM alpine:3.4\r\n ---> 29cc5addcb99\r\nStep 2 : RUN apk add --update ca-certificates && rm -rf /var/cache/apk/*\r\n ---> Running in 5f661c3cc71f\r\nThe command '/bin/sh -c apk add --update ca-certificates && rm -rf /var/cache/apk/*' returned a non-zero code: 139\r\n```\r\n\r\n**Additional information you deem important **\r\nI can build this image normally in 4.4 kernel"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/243868470","html_url":"https://github.com/docker/docker/issues/23471#issuecomment-243868470","issue_url":"https://api.github.com/repos/docker/docker/issues/23471","id":243868470,"user":{"login":"nrvale0","id":3616282,"avatar_url":"https://avatars.githubusercontent.com/u/3616282?v=3","gravatar_id":"","url":"https://api.github.com/users/nrvale0","html_url":"https://github.com/nrvale0","followers_url":"https://api.github.com/users/nrvale0/followers","following_url":"https://api.github.com/users/nrvale0/following{/other_user}","gists_url":"https://api.github.com/users/nrvale0/gists{/gist_id}","starred_url":"https://api.github.com/users/nrvale0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nrvale0/subscriptions","organizations_url":"https://api.github.com/users/nrvale0/orgs","repos_url":"https://api.github.com/users/nrvale0/repos","events_url":"https://api.github.com/users/nrvale0/events{/privacy}","received_events_url":"https://api.github.com/users/nrvale0/received_events","type":"User","site_admin":false},"created_at":"2016-08-31T19:09:01Z","updated_at":"2016-08-31T19:09:01Z","body":"I've seen similar behavior on Ubuntu 16.04 with the following 'docker run' as a sanity check for Alpine in general:\r\n\r\n```ShellSession\r\n➜  /tmp docker run -ti --entrypoint=/bin/sh alpine /bin/sh             \r\n➜  /tmp echo $?\r\n139\r\n```\r\n\r\nHere's the output of the diag script:\r\n\r\n```ShellSession\r\ninfo: reading kernel config from /boot/config-4.6.4-xanmod6 ...\r\n\r\nGenerally Necessary:\r\n- cgroup hierarchy: properly mounted [/sys/fs/cgroup]\r\n- apparmor: enabled and tools installed\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_CPUSETS: enabled\r\n- CONFIG_MEMCG: enabled\r\n- CONFIG_KEYS: enabled\r\n- CONFIG_VETH: enabled (as module)\r\n- CONFIG_BRIDGE: enabled (as module)\r\n- CONFIG_BRIDGE_NETFILTER: enabled (as module)\r\n- CONFIG_NF_NAT_IPV4: enabled (as module)\r\n- CONFIG_IP_NF_FILTER: enabled (as module)\r\n- CONFIG_IP_NF_TARGET_MASQUERADE: enabled (as module)\r\n- CONFIG_NETFILTER_XT_MATCH_ADDRTYPE: enabled (as module)\r\n- CONFIG_NETFILTER_XT_MATCH_CONNTRACK: enabled (as module)\r\n- CONFIG_NF_NAT: enabled (as module)\r\n- CONFIG_NF_NAT_NEEDED: enabled\r\n- CONFIG_POSIX_MQUEUE: enabled\r\n\r\nOptional Features:\r\n- CONFIG_USER_NS: enabled\r\n- CONFIG_SECCOMP: enabled\r\n- CONFIG_CGROUP_PIDS: enabled\r\n- CONFIG_MEMCG_SWAP: enabled\r\n- CONFIG_MEMCG_SWAP_ENABLED: missing\r\n    (note that cgroup swap accounting is not enabled in your kernel config, you can enable it by setting boot option \"swapaccount=1\")\r\n- CONFIG_BLK_CGROUP: enabled\r\n- CONFIG_BLK_DEV_THROTTLING: enabled\r\n- CONFIG_IOSCHED_CFQ: enabled\r\n- CONFIG_CFQ_GROUP_IOSCHED: enabled\r\n- CONFIG_CGROUP_PERF: enabled\r\n- CONFIG_CGROUP_HUGETLB: enabled\r\n- CONFIG_NET_CLS_CGROUP: enabled (as module)\r\n- CONFIG_CGROUP_NET_PRIO: enabled\r\n- CONFIG_CFS_BANDWIDTH: enabled\r\n- CONFIG_FAIR_GROUP_SCHED: enabled\r\n- CONFIG_RT_GROUP_SCHED: missing\r\n- CONFIG_IP_VS: enabled (as module)\r\n- CONFIG_EXT3_FS: missing\r\n- CONFIG_EXT3_FS_XATTR: missing\r\n- CONFIG_EXT3_FS_POSIX_ACL: missing\r\n- CONFIG_EXT3_FS_SECURITY: missing\r\n    (enable these ext3 configs if you are using ext3 as backing filesystem)\r\n- CONFIG_EXT4_FS: enabled\r\n- CONFIG_EXT4_FS_POSIX_ACL: enabled\r\n- CONFIG_EXT4_FS_SECURITY: enabled\r\n- Network Drivers:\r\n  - \"overlay\":\r\n    - CONFIG_VXLAN: enabled (as module)\r\n    Optional (for secure networks):\r\n    - CONFIG_XFRM_ALGO: enabled (as module)\r\n    - CONFIG_XFRM_USER: enabled (as module)\r\n  - \"ipvlan\":\r\n    - CONFIG_IPVLAN: enabled (as module)\r\n  - \"macvlan\":\r\n    - CONFIG_MACVLAN: enabled (as module)\r\n    - CONFIG_DUMMY: enabled (as module)\r\n- Storage Drivers:\r\n  - \"aufs\":\r\n    - CONFIG_AUFS_FS: enabled (as module)\r\n  - \"btrfs\":\r\n    - CONFIG_BTRFS_FS: enabled (as module)\r\n    - CONFIG_BTRFS_FS_POSIX_ACL: enabled\r\n  - \"devicemapper\":\r\n    - CONFIG_BLK_DEV_DM: enabled\r\n    - CONFIG_DM_THIN_PROVISIONING: enabled (as module)\r\n  - \"overlay\":\r\n    - CONFIG_OVERLAY_FS: enabled (as module)\r\n  - \"zfs\":\r\n    - /dev/zfs: missing\r\n    - zfs command: missing\r\n    - zpool command: missing\r\n\r\nLimits:\r\n- /proc/sys/kernel/keys/root_maxkeys: 1000000\r\n```\r\n"}}
{"actor":{"display_login":"nrvale0"}}