Skip to content
This repository has been archived by the owner on Sep 6, 2023. It is now read-only.

Error: Make sure Docker CE is the version specified #26

Closed
stsch83 opened this issue Aug 12, 2021 · 1 comment
Closed

Error: Make sure Docker CE is the version specified #26

stsch83 opened this issue Aug 12, 2021 · 1 comment

Comments

@stsch83
Copy link

stsch83 commented Aug 12, 2021

I run the playbook:

  • hosts: docker

    vars:
    pip_package: python3-pip

    docker_version_armv6: 5:20.10.83-0raspbian-buster
    docker_version_armv7: 5:20.10.83-0raspbian-buster
    docker_version_arm64: 5:20.10.83-0raspbian-buster
    docker_version: "{{ docker_version_armv7 if 'armv7' in ansible_architecture else docker_version_armv6 if 'armv6' in ansible_architecture else docker_version_arm64 }}"

    roles:

    • common
    • geerlingguy.pip
    • geerlingguy.docker_arm
      become: true

and get the following error.

Any ideas?

TASK [geerlingguy.pip : Ensure Pip is installed.] ********************************************************************************************************************************************************
changed: [192.168.65.141]

TASK [geerlingguy.pip : Ensure pip_install_packages are installed.] **************************************************************************************************************************************

TASK [geerlingguy.docker_arm : Check if Docker is already present.] **************************************************************************************************************************************
ok: [192.168.65.141]

TASK [geerlingguy.docker_arm : Download Docker install convenience script.] ******************************************************************************************************************************
changed: [192.168.65.141]

TASK [geerlingguy.docker_arm : Run Docker install convenience script.] ***********************************************************************************************************************************
changed: [192.168.65.141]

TASK [geerlingguy.docker_arm : Make sure Docker CE is the version specified.] ****************************************************************************************************************************
fatal: [192.168.65.141]: FAILED! => {"cache_update_time": 1628755456, "cache_updated": false, "changed": false, "msg": "'/usr/bin/apt-get -y -o "Dpkg::Options::=--force-confdef" -o "Dpkg::Options::=--force-confold" --force-yes install 'docker-ce=5:20.10.83-0raspbian-buster'' failed: W: --force-yes is deprecated, use one of the options starting with --allow instead.\nE: Version '5:20.10.83-0raspbian-buster' for 'docker-ce' was not found\n", "rc": 100, "stderr": "W: --force-yes is deprecated, use one of the options starting with --allow instead.\nE: Version '5:20.10.83-0raspbian-buster' for 'docker-ce' was not found\n", "stderr_lines": ["W: --force-yes is deprecated, use one of the options starting with --allow instead.", "E: Version '5:20.10.83-0raspbian-buster' for 'docker-ce' was not found"], "stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\n", "stdout_lines": ["Reading package lists...", "Building dependency tree...", "Reading state information..."]}

@stsch83 stsch83 closed this as completed Aug 12, 2021
@stsch83
Copy link
Author

stsch83 commented Aug 12, 2021

apt-cache madison docker-ce to read all available versions in you package

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

No branches or pull requests

1 participant