Git Product home page Git Product logo

Comments (8)

geerlingguy avatar geerlingguy commented on June 7, 2024

It's a matter of updating defaults to the latest versions (see https://github.com/geerlingguy/ansible-role-docker_arm#role-variables) — that could be done fairly easily in a PR, but someone needs to get the exact values to update them all.

from ansible-role-docker_arm.

cybermcm avatar cybermcm commented on June 7, 2024

OK understood, but I never did that before :-(
I don't know how to create a PR and even before I tried to get the correct version numbers, but I failed (didn't find the right place to look for)... sorry, total noob here....

from ansible-role-docker_arm.

geerlingguy avatar geerlingguy commented on June 7, 2024

Just pushed an update for the latest version on Debian 10 64-bit Pi OS.

@cybermcm - Can you run apt-cache madison docker-ce on your Pi to see what version strings are available? Also uname -a to get the platform architecture.

from ansible-role-docker_arm.

cybermcm avatar cybermcm commented on June 7, 2024

That I can do, thanks for taking time to look into it:

 docker-ce | 5:20.10.10~3-0~raspbian-buster | https://download.docker.com/linux/raspbian buster/stable armhf Packages
 docker-ce | 5:20.10.9~3-0~raspbian-buster | https://download.docker.com/linux/raspbian buster/stable armhf Packages
 docker-ce | 5:20.10.8~3-0~raspbian-buster | https://download.docker.com/linux/raspbian buster/stable armhf Packages
 docker-ce | 5:20.10.7~3-0~raspbian-buster | https://download.docker.com/linux/raspbian buster/stable armhf Packages
 docker-ce | 5:20.10.6~3-0~raspbian-buster | https://download.docker.com/linux/raspbian buster/stable armhf Packages
 docker-ce | 5:20.10.5~3-0~raspbian-buster | https://download.docker.com/linux/raspbian buster/stable armhf Packages
 docker-ce | 5:20.10.4~3-0~raspbian-buster | https://download.docker.com/linux/raspbian buster/stable armhf Packages
 docker-ce | 5:20.10.3~3-0~raspbian-buster | https://download.docker.com/linux/raspbian buster/stable armhf Packages
 docker-ce | 5:20.10.2~3-0~raspbian-buster | https://download.docker.com/linux/raspbian buster/stable armhf Packages
 docker-ce | 5:20.10.1~3-0~raspbian-buster | https://download.docker.com/linux/raspbian buster/stable armhf Packages
 docker-ce | 5:20.10.0~3-0~raspbian-buster | https://download.docker.com/linux/raspbian buster/stable armhf Packages
 docker-ce | 5:19.03.15~3-0~raspbian-buster | https://download.docker.com/linux/raspbian buster/stable armhf Packages
 docker-ce | 5:19.03.14~3-0~raspbian-buster | https://download.docker.com/linux/raspbian buster/stable armhf Packages
 docker-ce | 5:19.03.13~3-0~raspbian-buster | https://download.docker.com/linux/raspbian buster/stable armhf Packages
 docker-ce | 5:19.03.12~3-0~raspbian-buster | https://download.docker.com/linux/raspbian buster/stable armhf Packages
 docker-ce | 5:19.03.11~3-0~raspbian-buster | https://download.docker.com/linux/raspbian buster/stable armhf Packages
 docker-ce | 5:19.03.10~3-0~raspbian-buster | https://download.docker.com/linux/raspbian buster/stable armhf Packages
 docker-ce | 5:19.03.9~3-0~raspbian-buster | https://download.docker.com/linux/raspbian buster/stable armhf Packages
 docker-ce | 5:19.03.8~3-0~raspbian-buster | https://download.docker.com/linux/raspbian buster/stable armhf Packages
 docker-ce | 5:19.03.7~3-0~raspbian-buster | https://download.docker.com/linux/raspbian buster/stable armhf Packages
 docker-ce | 5:19.03.6~3-0~raspbian-buster | https://download.docker.com/linux/raspbian buster/stable armhf Packages
 docker-ce | 5:19.03.5~3-0~raspbian-buster | https://download.docker.com/linux/raspbian buster/stable armhf Packages
 docker-ce | 5:19.03.4~3-0~raspbian-buster | https://download.docker.com/linux/raspbian buster/stable armhf Packages
 docker-ce | 5:19.03.3~3-0~raspbian-buster | https://download.docker.com/linux/raspbian buster/stable armhf Packages
 docker-ce | 5:19.03.2~3-0~raspbian-buster | https://download.docker.com/linux/raspbian buster/stable armhf Packages
 docker-ce | 5:19.03.1~3-0~raspbian-buster | https://download.docker.com/linux/raspbian buster/stable armhf Packages
uname -a
Linux mail 5.10.63-v7l+ #1459 SMP Wed Oct 6 16:41:57 BST 2021 armv7l GNU/Linux

from ansible-role-docker_arm.

fernandopasik avatar fernandopasik commented on June 7, 2024

I've been getting the latest version and storing it in a var and then running jeff's role

    - name: Get latest Docker CE version
      shell: apt list -a docker-ce | head -n 2 | tail -1 | awk '{print $2}'
      changed_when: false
      register: docker_ce_latest
    - set_fact:
        docker_ce_latest: '{{docker_ce_latest.stdout}}'
    - import_role:
        name: geerlingguy.docker_arm
      vars:
        docker_version_armv6: '{{docker_ce_latest}}'
        docker_version_armv7: '{{docker_ce_latest}}'
        docker_version_arm64: '{{docker_ce_latest}}'

PS: Sorry @geerlingguy if this is a bit hacky solution :)

from ansible-role-docker_arm.

fernandopasik avatar fernandopasik commented on June 7, 2024

I've realised this can not be done without running first the convenience script install or manually setting up the docker repo.

@geerlingguy I think the docker install convenience script installs already the latest version, would it be possible to make optional the step

- name: Make sure Docker CE is the version specified.
  apt:
    name: "docker-ce={{ docker_version }}"
    state: present
    force: true
    install_recommends: "{{ docker_install_recommends }}"

I'm happy to raise a PR if you agree with this

from ansible-role-docker_arm.

geerlingguy avatar geerlingguy commented on June 7, 2024

@fernandopasik - I'd be okay with that, maybe set docker_version default to latest, and in this task, use a when to say {{ docker_version is not 'latest' }} (something like that).

from ansible-role-docker_arm.

fernandopasik avatar fernandopasik commented on June 7, 2024

Pushed a PR to avoid step when docker_version is set to latest

from ansible-role-docker_arm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.