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 module doesn't work in AmazonLinux2 #962

Open
karthik-jaganathan opened this issue Nov 22, 2023 · 1 comment
Open

Docker module doesn't work in AmazonLinux2 #962

karthik-jaganathan opened this issue Nov 22, 2023 · 1 comment
Labels

Comments

@karthik-jaganathan
Copy link

Describe the Bug

The Docker module is not working in AmazonLinux2 ARM hosts. There is a validation in the init.pp , it checks for RHEL >= 7. However, AmazonLinux2 VERSION has value of 2 so the above conditional check fails and module execution is exiting

NAME="Amazon Linux"
VERSION="2"
ID="amzn"
ID_LIKE="centos rhel fedora"
VERSION_ID="2"

Expected Behavior

Docker module should support all RHEL/Debian flaours

Steps to Reproduce

Steps to reproduce the behavior:

  1. Refer here for the validation
    fail('This module only works on Debian, Red Hat or Windows based systems.')

Environment

  • Version [Docker version 20.10.25, build b82b9f3]
  • Platform [AmazonLinux2 ARM x86_64]

Additional Context

Add any other context about the problem here.

@rjd1
Copy link

rjd1 commented Mar 15, 2024

Encountered the same issue recently and created a PR to address it. This change adds an exception to the RedHat 7 check for Amazon and another check below to fail if not Amazon Linux 2 or newer, effectively maintaining the same compatibility standard for that distribution.

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

2 participants