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

Update docker version #450

Open
gaiziRepo opened this issue Mar 28, 2024 · 3 comments
Open

Update docker version #450

gaiziRepo opened this issue Mar 28, 2024 · 3 comments
Labels

Comments

@gaiziRepo
Copy link

Hello, how can i update the docker version ?

I have an old version installed with the role geerlingguy.docker version 4.2.1 and the docker version istalled is 19.03.13.

I'm using geerlingguy.docker version 7.1.0 now and i want to update docker to it's latest version 26.0.

I did specify :
docker_packages_state: latest
docker_packages:

  • "docker-{{ docker_edition }}-26.0.0"
  • "docker-{{ docker_edition }}-26.0.0-cli"
  • "docker-{{ docker_edition }}-26.0.0-rootless-extras"

But it does not seem to work. how can i update docker version ? did i miss a step ?

@linuxbandit
Copy link

@gaiziRepo you didn't know, but your question is not related to the ansible role per se, because the name of the version of docker depends on your package manager: as an example, this is for Ubuntu 18
5:{{ docker_version }}~3-0~ubuntu-bionic

therefore, to install a specific pinned version of docker, you should do, on ubuntu 18:

docker_version: "19.03.15"
docker_ubuntu_version: "5:{{ docker_version }}~3-0~ubuntu-bionic" 
docker_packages:
      - "docker-{{ docker_edition }}={{docker_ubuntu_version}}"

I put extra verbosity to relay the concept. docker_packages is the role's only variable, the others are for you to remember that the version is 19.03.15, and that it has an awful name in ubuntu 18's repos

HTH

@elburro1887
Copy link

You can run this command to see the OS Specific version strings
apt-cache madison docker-ce | awk '{ print $3 }'

from: https://docs.docker.com/engine/install/debian/#install-using-the-repository

Copy link

github-actions bot commented Nov 4, 2024

This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!

Please read this blog post to see the reasons why I mark issues as stale.

@github-actions github-actions bot added the stale label Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants