Whether it is possible to set up git hooks to work with the container?

Welcome.
The operating system installed git-scm and raised the docker container primeneniy the project folder. Whether it is possible to configure the interaction so that the hooks were processed in the container? For example, doing the commit in the OS, the container knew about this and made certain actions with primenenie data.

5c97e160b1d30134552183.png
March 19th 20 at 08:23
2 answers
March 19th 20 at 08:25
Solution
March 19th 20 at 08:27
Yes. In the script hook post-commit place, for example, for purification of tmp inside the container
exec mycontainer docker rm -r /tmp/*

Find more questions by tags DockerGit