ansible-community / ansible-community/molecule-plugins
How to use docker command as root
- Dominant language
- Python
- Stars
- 164
- Forks
- 113
- Avg merge
- 4d 20h
- Merged PRs (30d)
- 1
Description
## Overview
I think it would be great if we could use docker command as root. The reason why I think so is [Q&A](https://github.com/ansible-community/molecule/discussions/3635) which you can see. It's my first time to write the issue and submit a PR. So please let me know if there are any mistakes.
## Molecule and Ansible version
```shell
$ ansible --version && molecule --version
ansible [core 2.13.2]
.
.
.
molecule 4.0.1 using python 3.8
ansible:2.13.2
delegated:4.0.1 from molecule
docker:2.0.0 from molecule_docker requiring collections: community.docker>=3.0.0-a2
```
In addition, I use CentOS Linux 7 (Core).
## Desired Behavior
I would like to use docker command as root by writing a parameter (`become: true`) on molecule.yml.
```molecule.yml
platforms:
- become: true
```
## Branch name
feature/sudo-docker-command
Contributor guide
No contributing guide indexed for this repository
Research direction
The requested configuration is in molecule.yml, where platforms should accept become: true. Start by tracing how the Docker plugin handles platform options and compare the behavior with the linked Q&A. Done means Docker commands run as root when that setting is present, with the result checked against the stated Molecule, Ansible, and CentOS versions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, python
- Domain
- devops
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100