Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker-ce on raspbian 64bit #289

Closed
stsch83 opened this issue Aug 11, 2021 · 3 comments
Closed

docker-ce on raspbian 64bit #289

stsch83 opened this issue Aug 11, 2021 · 3 comments

Comments

@stsch83
Copy link

stsch83 commented Aug 11, 2021

Hi,

the scrit was not able to install docker-ce on rasbian 64bit version.

TASK [geerlingguy.docker : Add Docker apt key.] **********************************************************************************************************************************************************
ok: [192.168.65.141]

TASK [geerlingguy.docker : Ensure curl is present (on older systems without SNI).] ***********************************************************************************************************************
skipping: [192.168.65.141]

TASK [geerlingguy.docker : Add Docker apt key (alternative for older systems without SNI).] **************************************************************************************************************
skipping: [192.168.65.141]

TASK [geerlingguy.docker : Add Docker repository.] *******************************************************************************************************************************************************
ok: [192.168.65.141]

TASK [geerlingguy.docker : Install Docker.] **************************************************************************************************************************************************************
fatal: [192.168.65.141]: FAILED! => {"changed": false, "msg": "No package matching 'docker-ce' is available"}

Br,
Stefan

@geerlingguy
Copy link
Owner

@stsch83 - For ARM, I have a separate Docker role, since the installation is substantially different: https://github.com/geerlingguy/ansible-role-docker_arm

@Lithimlin
Copy link
Contributor

Lithimlin commented Mar 13, 2022

I think by now it's possible to just use apt to install docker-ce or am I seeing this wrong? At least that does work manually (running apt install docker-ce on the pi). The resulting docker version is 20.10.13, build a224086.

However, when running the role, it says No package matching 'docker-ce' is available. I'm not sure where the problem is here.

@rienafairefr
Copy link

Ran into roughly this issue, and the only way out of the No package matching 'docker-ce' is available was to add :armhf to the packages variables:

    docker_compose_package: docker-compose-plugin:armhf
    docker_packages:
      - "docker-ce:armhf"
      - "docker-ce-cli:armhf"
      - "docker-ce-rootless-extras:armhf"
      - "containerd.io:armhf"
      - "docker-buildx-plugin:armhf"

Traced it to python-apt somehow: apt install docker-ce works when running directly on the Pi. But python-apt cache structure has a list of ":", at least it does for the docker packages, it may be a bug in python-apt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants