docker not detected in centos, alpine, debian #74326
Labels
affects_2.10
This issue/PR affects Ansible v2.10
bug
This issue/PR relates to a bug.
module
This issue/PR relates to a module.
P3
Priority 3 - Approved, No Time Limitation
python3
support:core
This issue/PR relates to code supported by the Ansible Engineering Team.
Summary
The facts for ansible_virtualization_type and ansible_virtualization_role are wrong if run in a dockercontainer of centos (tested with 8), alpine or debian (tested with buster). Only in an ubuntu-container (tested with focal or hirsute) are the values correct.
The problem can be reproduced with the latest stable version and the devel branch.
Issue Type
Bug Report
Component Name
setup, virtual/linux.py
Ansible Version
Configuration
OS / Environment
Archlinux
Steps to Reproduce
Start up two containers. One with centos:8 and one with ubuntu:hirsute:
docker run --name ubuntu_hirsute -it ubuntu:hirsute /bin/bash apt-get update && apt-get install -y python3
Inventory:
Playbook:
Expected Results
Actual Results
Code of Conduct
The text was updated successfully, but these errors were encountered: