These are chat archives for azukiapp/azk

22nd
Nov 2016
Fabiano Chiaretto Fernandes
@chiaretto
Nov 22 2016 13:19
Guys, I have a question. I run AZK on my user with the "azk start" command, so he calls docker and instantiates the container. The problem is that the created files and folders created by the container are allowed root in my local folder. Because docker runs as root. How to solve it?
Anniel Menezes Cruz
@annielmenezes
Nov 22 2016 14:28
Hi @chiaretto, you can create a docker group and user to run docker without root if you use sudo usermod -aG docker $(id -un) See more here: http://docs.azk.io/en/installation/linux.html
Felipe Arenales Santos
@fearenales
Nov 22 2016 14:44
@annielmenezes actually @chiaretto is right, because the user that runs inside the container is the root user, even if you're not running Docker as root.
This is a known issue from Docker and the current solution (workaround, actually) is: after exiting the container, fix the generated files/folders permissions running the following command from inside your project's folder:
sudo chown -R `id -un`:`id -gn` .
Anniel Menezes Cruz
@annielmenezes
Nov 22 2016 14:48
Ok, thx @fearenales :+1:
Felipe Arenales Santos
@fearenales
Nov 22 2016 14:49
thank you, @annielmenezes ! :D
Fabiano Chiaretto Fernandes
@chiaretto
Nov 22 2016 17:08
@fearenales thank you.