puppetlabs / puppetlabs/puppetlabs-docker
Docker module doesn't work in AmazonLinux2
Nobody has claimed this yet.
- Dominant language
- Ruby
- Stars
- 94
- Forks
- 337
- Avg merge
- 11d 15h
- Merged PRs (30d)
- 2
Description
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:
- Refer here for the validation https://github.com/puppetlabs/puppetlabs-docker/blob/fc069284a69e9cc7fcd8584578b1e91de0f364a7/manifests/init.pp#L479
Environment
- Version [Docker version 20.10.25, build b82b9f3]
- Platform [AmazonLinux2 ARM x86_64]
Additional Context
Add any other context about the problem here.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in manifests/init.pp at the validation linked around line 479, then inspect how the AmazonLinux2 ARM environment is identified and why the current version check exits. Reproduce the reported environment if available and confirm the Docker module no longer rejects AmazonLinux2 while preserving the existing RHEL/Debian validation behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, linux, ruby
- Domain
- devops
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100