{"action":"closed","issue":{"url":"https://api.github.com/repos/docker-library/official-images/issues/771","labels_url":"https://api.github.com/repos/docker-library/official-images/issues/771/labels{/name}","comments_url":"https://api.github.com/repos/docker-library/official-images/issues/771/comments","events_url":"https://api.github.com/repos/docker-library/official-images/issues/771/events","html_url":"https://github.com/docker-library/official-images/issues/771","id":82906052,"number":771,"title":"“date -d” command fails on Alpine Linux Docker container","user":{"login":"lgs","id":1573,"avatar_url":"https://avatars.githubusercontent.com/u/1573?v=3","gravatar_id":"","url":"https://api.github.com/users/lgs","html_url":"https://github.com/lgs","followers_url":"https://api.github.com/users/lgs/followers","following_url":"https://api.github.com/users/lgs/following{/other_user}","gists_url":"https://api.github.com/users/lgs/gists{/gist_id}","starred_url":"https://api.github.com/users/lgs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lgs/subscriptions","organizations_url":"https://api.github.com/users/lgs/orgs","repos_url":"https://api.github.com/users/lgs/repos","events_url":"https://api.github.com/users/lgs/events{/privacy}","received_events_url":"https://api.github.com/users/lgs/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-30T20:33:19Z","updated_at":"2015-05-31T09:30:53Z","closed_at":"2015-05-31T09:30:53Z","body":"\r\nI built [Alpine Linux][1] in a [Docker container][2] with the following Dockerfile:\r\n\r\n<pre>\r\nFROM alpine:3.2\r\nRUN apk add --update jq curl && rm -rf /var/cache/apk/*\r\n</pre>\r\n\r\nthe build run successfully:\r\n\r\n<pre>\r\n$ docker build -t collector .\r\nSending build context to Docker daemon 2.048 kB\r\nSending build context to Docker daemon\r\nStep 0 : FROM alpine:3.2\r\n3.2: Pulling from alpine\r\n8697b6cc1f48: Already exists\r\nalpine:3.2: The image you are pulling has been verified. Important: image verification is a tech preview feature and should not be relied on to provide security.\r\nDigest: sha256:eb84cc74347e4d7c484d566dec8a5eef82bab1b78308b92cda559bcff29c27cc\r\nStatus: Downloaded newer image for alpine:3.2\r\n---> 8697b6cc1f48\r\nStep 1 : RUN apk add --update jq curl && rm -rf /var/cache/apk/*\r\n---> Running in 888571296e79\r\nfetch http://dl-4.alpinelinux.org/alpine/v3.2/main/x86_64/APKINDEX.tar.gz\r\n(1/11) Installing run-parts (4.4-r0)\r\n(2/11) Installing openssl (1.0.2a-r1)\r\n(3/11) Installing lua5.2-libs (5.2.4-r0)\r\n(4/11) Installing lua5.2 (5.2.4-r0)\r\n(5/11) Installing ncurses-terminfo-base (5.9-r3)\r\n(6/11) Installing ncurses-widec-libs (5.9-r3)\r\n(7/11) Installing lua5.2-posix (33.3.1-r2)\r\n(8/11) Installing ca-certificates (20141019-r2)\r\n(9/11) Installing libssh2 (1.5.0-r0)\r\n(10/11) Installing curl (7.42.1-r0)\r\n(11/11) Installing jq (1.4-r0)\r\nExecuting busybox-1.23.2-r0.trigger\r\nExecuting ca-certificates-20141019-r2.trigger\r\nOK: 9 MiB in 26 packages\r\n---> 7625779b773d\r\nRemoving intermediate container 888571296e79\r\nSuccessfully built 7625779b773d\r\n</pre>\r\n\r\nanyway when I run `date -d` it fails:\r\n\r\n<pre>\r\n$ docker run -i -t collector sh\r\n/ # date -d yesterday\r\ndate: invalid date 'yesterday'\r\n/ # date -d now\r\ndate: invalid date 'now'\r\n/ # date -d next-month\r\ndate: invalid date 'next-month'\r\n</pre>\r\n\r\nwhile the rest of the options seem running ok:\r\n\r\n<pre>\r\n/ # date\r\nSat May 30 18:57:24 UTC 2015\r\n/ # date +\"%A\"\r\nSaturday\r\n/ # date +\"%Y-%m-%dT%H:%M:%SZ\"\r\n2015-05-30T19:00:38Z\r\n</pre>\r\n\r\n[1]: http://alpinelinux.org/\r\n[2]: https://registry.hub.docker.com/_/alpine/\r\n"}}