don't set hostname with Docker host #89

Open
opened 2019-09-29 18:37:12 +02:00 by gcolpart · 1 comment
Owner

Docker doesn't allow set hostname

TASK [evolinux-base : Set hostname "localhost"] *********************************************************
fatal: [docker00]: FAILED! => {"changed": false, "msg": "Command failed rc=1, out=, err=hostname: you must be root to change the host name\n"}
Docker doesn't allow set hostname ~~~ TASK [evolinux-base : Set hostname "localhost"] ********************************************************* fatal: [docker00]: FAILED! => {"changed": false, "msg": "Command failed rc=1, out=, err=hostname: you must be root to change the host name\n"} ~~~
Owner

Could you explain how you run the playbook/role inside a Docker container?

I want to understand how we can detect that we're inside a container or if we need an explicit variable.

Could you explain how you run the playbook/role inside a Docker container? I want to understand how we can detect that we're inside a container or if we need an explicit variable.
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: evolix/ansible-roles#89
No description provided.