Skip to content

How to use docker command as root #25

Open
@ghost

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 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

$ 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.

platforms:
  - become: true

Branch name

feature/sudo-docker-command

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions