savoirfairelinux / cqfd

cqfd helps running commands inside the Docker container configured for your project, keeping the user and working directory the same inside the container
GNU General Public License v3.0
64 stars 31 forks source link

Can't run sudo inside docker machine #87

Closed takaite closed 2 years ago

takaite commented 2 years ago

Hello;

I'm using cqfd to build yocto project and simplify user's learning curve.

But to run a qemu machine, it requires user be sudo to run and ask for a password, that I don't have it. There is any workaround?

Best regards Taka

joufella commented 2 years ago

Hello @takaite, you can configure the container to allow password-less sudo usage, you can use cqfd's builders group in the container for that. For example:

# <content of .cqfd/xxx/Dockerfile>
RUN echo '%builders    ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers