Dockerized composer that cares about user rights.
2.4K
Add this to shell script named "composer" and save to a directory that is on your PATH.
#!/bin/bash
docker run -it --rm
-e "HOME"
-e "USER"
-e "UID=$(id -u)"
-e "GID=$(id -g)"
-v /home/$USER:/home/$USER
-v $PWD:/app
--net="host"
tsari/composer composer "$@"
docker pull tsari/composer:latest