{"action":"created","issue":{"url":"https://api.github.com/repos/docker-library/openjdk/issues/19","repository_url":"https://api.github.com/repos/docker-library/openjdk","labels_url":"https://api.github.com/repos/docker-library/openjdk/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/docker-library/openjdk/issues/19/comments","events_url":"https://api.github.com/repos/docker-library/openjdk/issues/19/events","html_url":"https://github.com/docker-library/openjdk/issues/19","id":53263682,"number":19,"title":"ubuntu java package has broken cacerts","user":{"login":"niloc132","id":241630,"avatar_url":"https://avatars.githubusercontent.com/u/241630?v=3","gravatar_id":"","url":"https://api.github.com/users/niloc132","html_url":"https://github.com/niloc132","followers_url":"https://api.github.com/users/niloc132/followers","following_url":"https://api.github.com/users/niloc132/following{/other_user}","gists_url":"https://api.github.com/users/niloc132/gists{/gist_id}","starred_url":"https://api.github.com/users/niloc132/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niloc132/subscriptions","organizations_url":"https://api.github.com/users/niloc132/orgs","repos_url":"https://api.github.com/users/niloc132/repos","events_url":"https://api.github.com/users/niloc132/events{/privacy}","received_events_url":"https://api.github.com/users/niloc132/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":19,"created_at":"2015-01-02T17:04:35Z","updated_at":"2016-02-21T16:30:39Z","closed_at":"2015-01-21T22:24:50Z","body":"See https://bugs.launchpad.net/ubuntu/+source/ca-certificates-java/+bug/1396760\r\n\r\nAt this time, the latest image id aec8201c9d63 has no /etc/ssl/certs/java/cacerts file:\r\n\r\n    $ docker run --rm -it java:openjdk-8-jdk ls -al /etc/ssl/certs/java/cacerts\r\n    ...\r\n    ls: cannot access /etc/ssl/certs/java/cacerts: No such file or directory\r\n\r\nNote that this is not broken in java 7\r\n    $ docker run --rm -it java:openjdk-7-jdk ls -al /etc/ssl/certs/java/cacerts\r\n    ...\r\n    -rw-r--r-- 1 root root 206373 Jan  1 07:13 /etc/ssl/certs/java/cacerts\r\n\r\nThis means that https cannot be used in these images (among other issues), which breaks downstream images like maven:3.2-jdk-8 (which is where I discovered the issue).\r\n\r\nA workaround (from the linked issue) is to add command to the build, after the apt-get command:\r\n\r\n    /var/lib/dpkg/info/ca-certificates-java.postinst configure\r\n\r\nNote that `sudo` is left off, as the image doesn't have sudo, and runs as root anyway."},"comment":{"url":"https://api.github.com/repos/docker-library/openjdk/issues/comments/186854507","html_url":"https://github.com/docker-library/openjdk/issues/19#issuecomment-186854507","issue_url":"https://api.github.com/repos/docker-library/openjdk/issues/19","id":186854507,"user":{"login":"md5","id":76367,"avatar_url":"https://avatars.githubusercontent.com/u/76367?v=3","gravatar_id":"","url":"https://api.github.com/users/md5","html_url":"https://github.com/md5","followers_url":"https://api.github.com/users/md5/followers","following_url":"https://api.github.com/users/md5/following{/other_user}","gists_url":"https://api.github.com/users/md5/gists{/gist_id}","starred_url":"https://api.github.com/users/md5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/md5/subscriptions","organizations_url":"https://api.github.com/users/md5/orgs","repos_url":"https://api.github.com/users/md5/repos","events_url":"https://api.github.com/users/md5/events{/privacy}","received_events_url":"https://api.github.com/users/md5/received_events","type":"User","site_admin":false},"created_at":"2016-02-21T16:30:39Z","updated_at":"2016-02-21T16:30:39Z","body":"Actually, are you running Ubuntu on your VM as opposed to Boot2docker?\n"}}