molecule create fails.

168 views
Skip to first unread message

anemarkus

unread,
Nov 3, 2019, 5:01:38 AM11/3/19
to molecule-users
hi,
I initialize a new group, then I try to create the instances, but it fails, see below.
Running on CentOS 7, my user is allowed to do sudo. docker daemon is running

(molecule1) [molecule@pi1 testrole]$ sudo docker ps

CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES


What is wrong? Best Regards, markus.

(molecule1) [molecule@pi1 ~]$ molecule init role --verifier-name ansible -r testrole

--> Initializing new role testrole...

Initialized role in /home/molecule/testrole successfully.


(molecule1) [molecule@pi1 ~]$ cd testrole/


(molecule1) [molecule@pi1 testrole]$ molecule create

--> Validating schema /home/molecule/testrole/molecule/default/molecule.yml.

Validation completed successfully.

--> Test matrix

    

└── default

    ├── dependency

    ├── create

    └── prepare

    

--> Scenario: 'default'

--> Action: 'dependency'

Skipping, missing the requirements file.

--> Scenario: 'default'

--> Action: 'create'

--> Sanity checks: 'docker'

ERROR: Unable to contact the Docker daemon. Please refer to https://docs.docker.com/config/daemon/ for managing the daemon

Rhys Campbell

unread,
Nov 3, 2019, 5:16:44 AM11/3/19
to anemarkus, molecule-users
You probably need to add your user to the docker group and possibly a few file ownership changes. See here for more...


--
You received this message because you are subscribed to the Google Groups "molecule-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to molecule-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/molecule-users/1c1ffac3-669d-45f6-a9df-566ad5afea59%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages