air-verse / air

☁️ Live reload for Go apps
GNU General Public License v3.0
16.32k stars 770 forks source link

Fix to a problem when using podman-compose to run Air #609

Closed ghost closed 2 weeks ago

ghost commented 3 weeks ago

Hello guys.

I'm having a problem running the docker-compose.yaml using podman-compose (I use podman instead of docker).

I receive this message when I run the podman-compose up:

failed to mkdir, error: mkdir /myapp/tmp: permission denied

I did some research and I think the problem is because podman uses my user to run the containers, and not root, and when it creates the container it can't create the directory since the user on the container is the root.

I don't know if this could be an issue or my knowledge on this is not enough to understand what I'm doing wrong.

I'm using the default Air config file.