angstwad/docker.ubuntu

raspberry pi with 16.04 fails

Closed this issue · 5 comments

TASK [docker : Install linux-image-extra-* packages to enable AuFS driver] *****
failed: [pi] (item=[u'linux-image-extra-4.4.0-1046-raspi2', u'linux-image-extra-virtual']) => {"failed": true, "item": ["linux-image-extra-4.4.0-1046-raspi2", "linux-image-extra-virtual"], "msg": "No package matching 'linux-image-extra-4.4.0-1046-raspi2' is available"}

May be related to #138.

This is definitely the same issue as #138. If you can come up with a cross-distro fix for the package names in that task, I'll take it.

Well, I'll try to figure out how to make it work on ARM. A bit confusing that it's a known issue but listed in closed ones...

@angstwad how about hardcoding some unsupported arcs? Here's what I currently use:

dependencies:
  - role: docker
    when: "{{ ansible_architecture != 'armv7l' }}"
- name: install docker.io
  apt: name=docker.io
  when: "{{ ansible_architecture == 'armv7l' }}"

A hardcoded list of platforms and architectures would be great, with a warning to let users know it's "unsupported" and an option to install anyway. I'd take a PR for that.

The issue is that the kernel packages for some distributions get extra information appended to the end of the package name. For example, we've seen this issue in Linode but it's still a supported arch (x86x64). That was noted in #138 (comment).

So it's an architecture issue and a distribution issue.

I'm sorry to reopen this, but I think the role should support only the docker-engine repo. The official repo supports armhf, so I'm not sure why the docker.io package would be required.